Skip to content

Update Selenium2Driver.php#1

Open
TakeAChef wants to merge 1 commit into
masterfrom
TakeAChef-patch-1
Open

Update Selenium2Driver.php#1
TakeAChef wants to merge 1 commit into
masterfrom
TakeAChef-patch-1

Conversation

@TakeAChef
Copy link
Copy Markdown
Owner

The error "invalid argument: 'id' can not be string" is thrown when passing a numeric iframe index to the method switchToIframe, because is casted to string.

The package "instaclick/php-webdriver" throws a 500 error in CurlService. Passing ['id' => integer] here $this->getWebDriverSession()->frame(array('id' => $name)); solves the problem.

That's the reason why i suggest typing switchToIFrame with integer (apart from string and null).

The error "invalid argument: 'id' can not be string" is thrown when passing a numeric iframe index to the method switchToIframe, because is casted to string.
 
The package "instaclick/php-webdriver" throws  a 500 error in CurlService. Passing ['id' => integer] here $this->getWebDriverSession()->frame(array('id' => $name)); solves the problem.

That's the reason why i suggest typing switchToIFrame with integer (apart from string and null).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant