Command line server for IE driver has stopped working dialog window while executing test cases on IE11 wth selenium 2.53 - selenium

I am running a test suite with more than 500 test cases with selenium 2.53 on IE11 browser.
I am getting error "Command line server for the IE driver has stopped working" during the execution randomly and the execution gets stuck.
I've updated IEDriver from 2.48.0 to v3.1.0.0 & v3.2.0.0 but no luck.
I've also tried to add new key "TabProcGrowth" (value = "0") under "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" but it didn't help.
OS: Windows 7- 64 bit
Selenium Version: 2.53.0.0
Browser: IE
Browser Version: IE 11.0.9600.18537
Any help would be highly appreciated.

i had faced the same issue but with higher version IE Driver 3.6.0
solution:try with different version
IE Driver 3.3.0 has resolved the issue and even use the same version of Selenium.Support -Version 3.3.0
Selenium.WebDriver-Version 3.3.0
Selenium.WebDriver.IEDriver 3.3.0
please refer this link for detailed description of each version https://raw.githubusercontent.com/SeleniumHQ/selenium/master/cpp/iedriverserver/CHANGELOG

Related

IEDriver Server 4.0.0.0 doesn't provide any response when running using Selenium Java

I recently upgraded the IE Driver server to version 4.0.0.0 32- bit. When I run my test case it launches the browser but never shows any error or responds.
Selenium Version - 3.141.59 IE Version:
IE Webbrowser after launching:
Below Capabilities added:
NOTE: If I use IEDriver -3.150.1.0 it is working fine.
When using Selenium and iedriverserver it is recommended to use the latest version of the major releases. As an example,
Incase you are using Selenium Version - 3.141.59 ideally you should be using iedriverserver v3.150.2.0
Incase you are using Selenium Version - 4.0.0 ideally you should be using iedriverserver v4.0.0.0

Post Firefox upgrade to version 60.3.0, not able to run automation tests

We are using robot framework for automation testing in our project. We were using Firefox version 47, gecko driver version 0.16.0 and selenium 3.14 and were able to run all the tests successfully.
Recently, IT team decided to upgrade Firefox to 60.3.0 and now automation is failing with error as:
SessionNotCreatedException: Message: Unable to find a matching set of capabilities.
Tried using geckodriver versions 0.21, 0.22, 0.24 but in vain. Receiving same error.
Any help or insights would be appreciated.
This error message...
SessionNotCreatedException: Message: Unable to find a matching set of capabilities.
...implies that the GeckoDriver was unable to initiate/spawn a new WebBrowser i.e. Firefox Browser session.
Your main issue is the incompatibility between the version of the binaries you are using.
It is not clear from your question which combination of Selenium, GeckoDriver and Firefox combination produced the mentioned error. However as per best practices always follow the GeckoDriver, Selenium and Firefox Browser compatibility chart below:

geb.driver.DriverCreationException: failed to create driver from callback

I am getting below Exception while running test scripts.
geb.driver.DriverCreationException: failed to create driver from callback 'script1501516684770944233575$_run_closure1#6601cc93'
java.lang.NoClassDefFoundError: Lorg/openqa/selenium/remote/html5/RemoteWebStorage;
failed to create driver from callback 'script1501516684770944233575$_run_closure1#6601cc93'
OS: Windows 10 64 bit
Chrome browser: v60 (latest one)
Selenium :-2.43.1
Chrome web driver:-2.24.417431
geb-version:0.10.0
geb-testng-version:0.13.1
geb-spoc-version:0.13.1
Thanks in Advance...!
This will be a version issue (your old web driver is not compatible with newer chrome versions). If you are using the latest version of chrome, I suggest moving to the latest version of selenium and chrome driver.
Infact one quick google suggests that I might be right: https://sites.google.com/a/chromium.org/chromedriver/downloads
Latest Release: ChromeDriver 2.31
Supports Chrome v58-60
This error can be thrown if you do not correctly define your chrome driver location when executing your tests.
Either in your GebConfig:
driver = {
System.setProperty('webdriver.chrome.driver', '/Users/foo/drivers/chromedriver')
new ChromeDriver()
}
Or in something like VM parameters if running from an intelliJ Run/Debug Configuration:
-Dbrowser=chrome -Dwebdriver.chrome.driver="/Users/foo/drivers/chromedriver/chromedriver.exe"
I was having this problem for a couple of days and finally understand the cause. This problem occurred for me on Jenkins when I am setting my browser to chrome or firefox and then trying to run my tests. It occurred due to browsers not installed on Jenkins machine. The drivers are present in the code but the browser should be installed on machine otherwise Geb will throw this error. Hope this helps.

which version of firefox do we need for Selenium 3.3.1?

which version of firefox do we need for Selenium 3.3.1?? I'm trying to use firefox 51 with selenium 3.3.1 and I'm not able to launch the application please let me know which browser do we need to use for selenium 3.3.1
Firefox 51/52 works well with GeckoDriver 0.15.0 and Selenium 3.3.1. You would need to download correct version of GeckoDriver based on whether Firefox is 32-bit or 64-bit in Windows. Also, you may need to provide Firefox Binary which can be done with FirefoxOptions class.
FirefoxOptions options = new FirefoxOptions();
options.setBinary("C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe");
FirefoxDriver driver = new FirefoxDriver(options);
driver.get("http://www.google.com");
Refer this article for more details - http://www.automationtestinghub.com/selenium-3-0-launch-firefox-with-geckodriver/
To quote the team of geckodriver:
Support is best in Firefox 48 and onwards, although generally the more
recent the Firefox version, the better the experience as they have
more bug fixes and features. We strongly advise using the latest
Firefox Nightly with geckodriver, and want to make it clear that
Firefox 47 and earlier is explicitly not supported. Since Windows XP
support in Firefox will be dropped with Firefox 53, we do not support
this platform.
see also: https://github.com/mozilla/geckodriver/blob/master/README.md
I have a Windows 32 bit machine.
Selenium WebDriver - 3.4.0, Selenium.Support - 3.4.0
Firefox - 54.0 (32 bit)
GeckoDriver (32 bit) downloaded and stored locally - https://github.com/mozilla/geckodriver/releases
Firefox installed and it's 'firefox.exe' path is provided.
Code to launch Firefox Browser below:
FirefoxDriverService service = FirefoxDriverService.CreateDefaultService(#"C:\GeckoDriver");
service.FirefoxBinaryPath = #"C:\Program Files\Mozilla Firefox\firefox.exe";
driverInstance = new FirefoxDriver(service);

Not able to open firefox from selenium webdriver

I am getting the below error when i am running the selenium script.
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
fTime":1409733904986}}},{"name":"winreg-app-user","addons":{"{e4f94d1e-2f53-401e-8885-681602c0ddd8}":{"descriptor":"C:\\ProgramData\\McAfee Security Scan\\Extensions\\{e4f94d1e-2f53-401e-8885-681602c0ddd8}.xpi","mtime":1396607774000}}},{"name":"app-profile","addons":{"fxdriver#googlecode.com":{"descriptor":"C:\\Users\\kishna\\AppData\\Local\\Temp\\anonymous3395727590319882631webdriver-profile\\extensions\\fxdriver#googlecode.com","mtime":1409812670363,"rdfTime":1409812670181}}}]
1409812670931 addons.xpi-utils DEBUG Opening XPI database C:\Users\kishna\AppData\Local\Temp\anonymous3395727590319882631webdriver-profile\extensions.json
1409812670931 addons.xpi DEBUG New add-on fxdriver#googlecode.com installed in app-profile
You are using selenium version that doesn't support Firefox version 32.
And since currently there is no selenium java package version that claiming support for Firefox 32, you need to downgrade your browser. In your case, downgrade it to Firefox 28, which is listed as supported by selenium 2.42.2.
See also similar problem here:
selenium and web2py from killer-web-development.com doesn't work
Also see:
Where can I find a definitive Selenium WebDriver to Firefox Compatibility Matrix?
Documentation confusion: what version of Firefox does Selenium support?
Is Selenium 2.42.2 webdriver compatible with Firefox 27.0.1?
Please upgrade to 2.43.1 [http://www.seleniumhq.org/download/]. The new version works for FF32.
You can follow link below in the future for check supported versions FF vs. WebDriver.
I use it if I want to update browser or webdriver library.
LINK: http://selenium.googlecode.com/git/java/CHANGELOG