Open NoxArt opened 11 years ago
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!
I encountered the same problem and fixed it by changing line 62 to the following:
if (!empty($resultObject)) { $wait = false; }
Regards, Ron
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!