Selenium Jar File 2.44.0 - selenium-webdriver

I want to know whether Selenium jar 2.44.0 (new one) supports Firefox 35.0.1 or not. Please suggest.
Getting error :
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host

As far as I know , Selenium latest version supports till firefox 33.0.
Still I think you should check browser compatibility with selenium versions before start work so please check at below :
Selenium with browser compatibility

Related

Project still uses old Chrome webdriver even after I installed a later version

I wanted to run a demo code -FaceboookCodedUITestProject- and I see that it doesnt run on chrome browser, gives this error on console ,even though it starts a chrome
Starting ChromeDriver 2.25.426923
only local connections are allowed
I search and found this issue comes with some version so I installed Selenium.WebDriver.3.141.0 with nuget and I can see when I click on webDriver folder in preferences , however I still get same error on console and it says Satrting ChromeDrive 2.25. How can I remove ChromeDriver 2.25 and use only 3.141 ?
C:\Users\rasim.avci\source\repos\FaceboookCodedUITestProject\packages\Selenium.WebDriver.3.141.0\lib\net45\WebDriver.dll
Chrome driver is different from Nuget package library.
ChromeDriver(2.25) is a standalone selenium webdriver which interacts with chrome browser. The 2.25 version is not compatible with latest version of chrome
And Nuget package is selenium library to write the test. It should not be confused with driver
To fix this, find where chromedriver.exe is! .
Open CMD prompt and type Chromedriver. If it runs successfully, then chromedriver would have been added in Environment PATH and its easy to get the location from there

Getting "chrome error communicating with the remote browser. it may have died"

While automating the one scenario in chrome browser using Selenium Webdriver (Junit) as follows:
Click on Place Payment Button.
Wait for 20 Seconds
Retrieve the Order Number(Used GetText())
After waiting, I am get the following error:
chrome error communicating with the remote browser. it may have died
I have resolved the same issue by updating the chrome driver. Try by downloading latest version of chrome driver according to your browser version.
I was facing this issue for around 20 days and finally resolved by updating latest Selenium Version. That means we have to use compatible Chromedriver and Selenium Version. If you use latest Chromedriver and old Selenium version, it will give this issue "- Error communicating with the remote browser. it may have died”

Does selenium webdriver 2.53.0 support safari on Windows?

I'm trying to automate my test suite on Safari 5.1.7 on Windows 8.1. I did install the extension provided in Seleniumhq.org. But I'm getting an error saying
Exception:
Did not receive a connection from the Safari extension. Please verify that it is properly installed and is the proper version..
I'm struggling with this since a very long time but didn't receive any help. Googled a lot but left unsuccessful. If anyone is automating safari on windows please help me.
Followed the steps mentioned here.
According to this post on SO, Is it worth downgrading for Safari? I could run my test suite on IE11, Firefox, Chrome and Opera. Can someone please guide me with this issue.
Thanks.
Using Selenium Webdriver 2.47, we can automate safari on windows platform. Source from here.

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

Is it possible to connect Selenium-IDE to ChromeDriver

I;m just starting to test my app with Selenium and I have downloaded Selenium-IDE and wrote a few test cases. They run nice in Firefox and all pass. I also need to test my app in Chrome and IE. Is it possible to connect the IDE to the Chrome web driver so I can run them there as well?
You can export the scripts as Wedbriver scripts and run it against other browser.
Now you can,
from How to run tests from Selenium IDE in Chrome :
Ever wondered if you could use Selenium IDE for Chrome? You’ve probably heard that the IDE only runs in Firefox, which means Google’s much-famed browser is out of reach. Actually, there’s a neat little feature that lets you run Selenium IDE in Chrome.
The feature is called WebDriver Playback. Here’s how you can use it:
Launch Selenium IDE.
Go to ‘Options’ and select “Options…” in the drop-down menu.
In the Options menu, select the “WebDriver” tab.
Check the “Enable WebDriver playback” checkbox.
Find the “Browser choices” input field right below the checkbox. Below the input field, you will see browser options. These include “android, chrome, firefox, htmlunit, internet explorer, iPhone, iPad”.
Substitute “firefox” with “chrome”. Note that both variants are lowercase.
Download the Selenium standalone JAR file and ChromeDriver. Add both files to the same folder on your local computer.
Use Terminal to navigate to the folder with the downloaded files.
Start Selenium server and ChromeDriver server via Terminal: java -jar selenium-server-standalone-2.43.1.jar -Dwebdriver.chrome.driver=chromedriver.exe
Open Selenium IDE and run the test script. Note that the script will run in one of the more or less recent versions of Chrome.

Resources