Problem with Safari driver - timeouts
We always get timeouts when we try to login this site: automation.playbuzz.com here are the details: http://screencast.com/t/BxTwYjWH2xuD
Thanks!
what version of Safari? what version of Selenium? in addition, what happens if you would use selenium to find and click your button instead of using JS?
5hawnknight , Thank you for your answer.
- Safari - it happened for versions 6.0, 7.0, 8.0 and 9.0
- Selenium - version 2.48
- When I click instead of using Javascript, the behavior is inconsistent. Sometimes I get the same timeout and sometimes I get the error message that Safari cannot open the page because Safari can't establish a secure connection.
By the way, I'm not trying to go to "localhost"
in addition, could you share your code example?
Sure, WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(60)); driver.Url = "http://alpha.playbuzz.com/userlogin"; wait.Until(ExpectedConditions.ElementIsVisible(By.Id("elogin_email_field"))); driver.FindElementById("elogin_email_field").SendKeys("[email protected]"); driver.FindElementById("elogin_pass_field").SendKeys("playbuzz1"); Thread.Sleep(3000); string command = "document.getElementsByClassName('elogin_submit_button')[0].click()"; driver.ExecuteScript(command); Thread.Sleep(3000); wait.Until(ExpectedConditions.InvisibilityOfElementLocated(By.Id("login_popup_cover"))); wait.Until(ExpectedConditions.ElementIsVisible(By.ClassName("create_button_wrapper")));
driver is instance of RemoteWebDriver
With the release of Safari 10, Apple now offers official support WebDriver. Because of this, the Selenium project no supports the legacy implementation from 2.x.
Users are advised to switch to Apple's driver and file bugs at https://bugreport.apple.com/
We are no longer tracking issues for Selenium's SafariDriver and thus closing this issue.