Skip to content
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

Wait undefined variable #14

Open
NoxArt opened this issue Apr 7, 2013 · 1 comment
Open

Wait undefined variable #14

NoxArt opened this issue Apr 7, 2013 · 1 comment

Comments

@NoxArt
Copy link

NoxArt commented Apr 7, 2013

Hi, on this line
https://github.com/Nearsoft/PHP-SeleniumClient/blob/master/SeleniumClient/WebDriverWait.php#L62
the variable $resultObject may not be defined if the previous call fails, using isset() would handle that. BTW should line 59 really be empty? I mean is it certain the exception will always be caused by waiting?
Thanks!

@roninbar
Copy link
Contributor

I encountered the same problem and fixed it by changing line 62 to the following:

if (!empty($resultObject)) { $wait = false; }

Regards,
Ron

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

No branches or pull requests

2 participants