php-selenium-client icon indicating copy to clipboard operation
php-selenium-client copied to clipboard

Wait undefined variable

Open NoxArt opened this issue 12 years ago • 1 comments

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!

NoxArt avatar Apr 07 '13 09:04 NoxArt

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

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

Regards, Ron

roninbar avatar Apr 13 '13 15:04 roninbar