Skip to content

Conversation

TakeAChef
Copy link
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