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:
2122
2122
* ` param ` $button
2123
2123
2124
2124
2125
- #### switchToIFrame
2125
+ #### switchToFrame
2126
2126
2127
2127
Switch to another frame on the page.
2128
2128
2129
2129
Example:
2130
2130
{% highlight html %}
2131
2131
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
+
2132
2160
<iframe name =" another_frame " id =" fr1 " src =" http://example.com " >
2133
2161
2134
2162
You can’t perform that action at this time.
0 commit comments