File tree Expand file tree Collapse file tree 1 file changed +29
-1
lines changed
Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -2122,13 +2122,41 @@ For example, given the following HTML:
21222122 * ` param ` $button
21232123
21242124
2125- #### switchToIFrame
2125+ #### switchToFrame
21262126
21272127Switch to another frame on the page.
21282128
21292129Example:
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
You can’t perform that action at this time.
0 commit comments