Does WebDriverWait behaves differently with Firefox?

switched from Chrome to Firefox standalone server and now these 2 lines of code are showing an error

error - Fatal error: Uncaught Facebook\WebDriver\Exception\TimeoutException in WebDriverWait.php:71 Stack trace: Facebook\WebDriver\WebDriverWait->until(Object(WebDriverExpectedCondition))

The issue is not with the WebDriverWait ,the way Xpath needs to be formatted is to be changed. Chrome and FF differ in how you have to write it, so if you change browsers you may have to update Xpaths as well.

1 Like