File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ public function touch() {
195195
196196 public function switch_to_frame ($ frame = null , $ curl_opts = array ()) {
197197 if (is_a ($ frame , "PHPWebDriver_WebDriverElement " )) {
198- $ frame_id = array ("id " => (int )$ frame ->getId ());
198+ $ frame_id = array ("ELEMENT " => (int )$ frame ->getId ());
199199 } else {
200200 throw new InvalidArgumentException ('$frame needs to be a webdriver element of a frame ' );
201201 }
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ public static function tearDownAfterClass() {
1717 }
1818
1919 public function test_frame_stuff () {
20+ $ divs = self ::$ session ->elements ("css selector " , "div " );
2021 // find your iframe
2122 $ iframe = self ::$ session ->element ("css selector " , "iframe " );
2223 // switch context to it
You can’t perform that action at this time.
0 commit comments