Skip to content

Commit 13981e7

Browse files
committed
Updated WebDriver documentation
1 parent c190c87 commit 13981e7

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

docs/modules/WebDriver.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2122,13 +2122,41 @@ For example, given the following HTML:
21222122
* `param` $button
21232123

21242124

2125-
#### switchToIFrame
2125+
#### switchToFrame
21262126

21272127
Switch to another frame on the page.
21282128

21292129
Example:
21302130
{% highlight html %}
21312131

2132+
<frame name="another_frame" id="fr1" src="http://example.com">
2133+
2134+
2135+
{% endhighlight %}
2136+
2137+
{% highlight php %}
2138+
2139+
<?php
2140+
# switch to frame by name
2141+
$I->switchToFrame("another_frame");
2142+
# switch to frame by CSS or XPath
2143+
$I->switchToFrame("#fr1");
2144+
# switch to parent page
2145+
$I->switchToFrame();
2146+
2147+
2148+
{% endhighlight %}
2149+
2150+
* `param string|null` $locator (name, CSS or XPath)
2151+
2152+
2153+
#### switchToIFrame
2154+
2155+
Switch to another iframe on the page.
2156+
2157+
Example:
2158+
{% highlight html %}
2159+
21322160
<iframe name="another_frame" id="fr1" src="http://example.com">
21332161
21342162

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy