Skip to content

Bugfix: Print the WebDriverException, when an element doesn't exists #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 19, 2013
Merged

Conversation

0x46616c6b
Copy link
Contributor

I found a bug when you grab an element which doesn't exists. For this case no try catch block around the Exception, so you can't use the $e->getMessage().

Stack Trace was:

Fatal error: Call to a member function getMessage() on a non-object in ...\vendor\instaclick\php-webdriver\lib\WebDriver\Container.php on line 89

robocoder added a commit that referenced this pull request Jun 19, 2013
Bugfix: Print the WebDriverException, when an element doesn't exists
@robocoder robocoder merged commit 3af07b8 into instaclick:master Jun 19, 2013
robocoder pushed a commit to robocoder/php-webdriver that referenced this pull request Jan 7, 2014
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.

2 participants