I made a script to automate front-end testing with selenium and everything worked great with the Chrome WebDriver. However now I try to test my suites cases on other browsers and particularly in the safari webdriver and it timeouts while trying to find and element.
Here is my testing config :
"browser" => "Safari",
"browser_version" => "10.0",
"os" => "OS X",
"os_version" => "Sierra",
"resolution" => "1024x768",
The command which timeouts is :
$this->driver->wait(15, 300)>until(
WebDriverExpectedCondition::visibilityOfElementLocated(
WebDriverBy::id("newDivOnThePageNewPage")
));
It gives me the following error message:
An element could not be located on the page using the given search parameters. (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 4.97 seconds
Also, sometimes url asked in the get
command is just not loaded and the browser is just popping with an empty page and nothing in the url bar.
Can you guys help me with this ?
Thanks in advance !