selenium 3.0 webdriver for safari 10 on windows - selenium-webdriver

I am using Selenium server 3.53 and using Safari browser version (5.1). When I try to open browser using Selenium on my Windows 10 machine, I got below error message.
("Exception in thread "main" org.openqa.selenium.WebDriverException:
SafariDriver requires Safari 10 running on OSX El Capitan or
greater.")
Can some one help me how to install Safari 10 on my Windows 10 machine or is there any alternate way to tun Safari using Selenium?

Vikrant , Apple's support for Safari on Windows stopped at 5.1 version, that means the latest safari you can install on Windows in Safari 5.1, why are you running your tests on safari which is very old and not supported by Apple?

I think you will to use updated SafariDriver and browser
For your info
To use Apple's SafariDriver, you need to upgrade to El Capitan and Safari 10. To use the long deprecated Legacy SafariDriver, you need to downgrade to Selenium 2.x.
Read this link: https://github.com/SeleniumHQ/selenium/issues/3359

Related

Unable to launch Firefox browser using Selenium Webdriver

I am using Firefox version of 57.0 in my system, and for automation I am using selenium standalone server of 3.0.1 and gecko driver of 0.12.0. The below code is being used for invoking the firefox browser:
System.setProperty("webdriver.gecko.driver",properties.getProperty("GeckoDriverPath"));
driver = new FirefoxDriver();
But during execution after launching the browser it is not being navigated to the desired URL.
Please let me know if I have missed any steps.
Try to download the latest version geckodriver - https://github.com/mozilla/geckodriver/releases

Polymer element not working in windows safari browser?

I am creating a polymer element, which is not supporting in windows safari browser. It is showing error like this -
How to override this problem.
If you check Polymer's website you'll find that they support Safari 7+. And for windows if i'm correct 5 is the last version for Safari. So, you should not try Safari in windows for Web-components

firefox 47.0 browser incompatibility with selenium 2.53.0

Is there any stable solution for firefox 47.0 browser incompatibility with selenium 2.53.0 without downgrading firefox into an older version.
Upgrade Firefox to 47.0.1 and selenium to 2.53.1.This should work.
You can upgrade to Firefox 47.0.1.
Firefox 47 crashing with selenium webdriver has been fixed in 47.0.1 as per the release notes - https://www.mozilla.org/en-US/firefox/47.0.1/releasenotes/.

Why does the FireFoxDriver not use the System.setProperty command in selenium webdriver?

Why do we need System.setProperty in the selenium webdriver command line for browsers other than FireFox?
what is the logic behind it?
Selenium provides native support to Firefox. As per the document,
Controls the Firefox browser using a Firefox plugin. The Firefox Profile that is used is stripped down from what is installed on the machine to only include the Selenium WebDriver.xpi (plugin).
Whereas, Chrome and IE works differently,
Chrome driver :
WebDriver works with Chrome through the chromedriver binary (found on the chromium project’s download page). You need to have both chromedriver and a version of chrome browser installed. chromedriver needs to be placed somewhere on your system’s path in order for WebDriver to automatically discover it. The Chrome browser itself is discovered by chromedriver in the default installation path.
IE works only with windows,
This driver is controlled by a .dll and is thus only available on Windows OS. Each Selenium release has its core functionality tested against versions 6, 7 and 8 on XP, and 9 on Windows7.
You can refer the document for better understanding Selenium Document

Selenium Webdriver

I am using Selenium WebDriver 2.39.0 + Firefox 26.0.
My Firefox driver instantiate and I am successfully able to log in into my application.
After that my script is not able to perform any further actions. But the same is working fine on WebDriver 2.39.0 + IE 9.
Please suggest!
Error appears as below:
org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with the remote browser. It may have died.
Build info: version: '2.39.0', revision: '14fa800511cc5d66d426e08b0b2ab926c7ed7398', time: '2013-12-16 13:18:38'
can you use below code to initialize the firefox browser and give it a try:
FirefoxProfile firefoxProfile = new ProfilesIni().getProfile("default");
WebDriver driver = new FirefoxDriver(firefoxProfile);
Try updating Firefox. Just make sure that the version of WebDriver you have is compatible with the version of Firefox you have by going to the Selenium site.
Below are some of the configurations that works..
Please try
1) upgrading from Selenium 2.41.0 to 2.44.0 worked for me.
Using Firefox v33.1.1
2) Install Selenium 2.45 + FF 36.0.4 .the issue will be resolved
3) it works with selenuim 2.43 and firefox 32.0.3
4) selenium-java (2.45.0) with FF 34.0 works!
As per the log, browser is not interacting.Try to update your FF and selenium server as well.
I did have this error 2 days ago. The Firefox version is too new for the web-driver and is not compatible with each other, try installing an older version of Firefox. (I use Firefox version 36.0.1 with Selenium 2.48.2 and works perfect).
Selenium webdriver version and Firefox version should be in sync. Webdriver version is not compatible with latest version of Firefox. This is most common issue, try to install older version of Firefox. With new selenium 3.0 we won't see this issue. We use geckodriver. Hope this information helps.

Resources