Reputation: 23
Code Trials :
public class loginmethod {
@Test
public void login() throws InterruptedException {
System.setProperty("webdriver.gecko.driver", "D:\\Tools\\geckodriver");
WebDriver driver = new FirefoxDriver();
driver.manage().window().maximize();
driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
}
}
Binary Version Details :
When I run code using Firefox driver following error is given:
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
Potential driver version mismatch ignored due to missing DLLs igd10umd64 v= and igd10iumd64 v=
*** Blocklist::_preloadBlocklistFile: blocklist is disabled
1526302485156 addons.xpi-utils DEBUG Starting async load of XPI database
1526302485236 addons.xpi DEBUG Ignoring file entry whose name is not a valid add-on QA\AppData\Local\Temp\anonymous5274473150250365422webdriver-profile\extensions\webdriver-staging
1526302485236 addons.xpi DEBUG Existing add-on [email protected] in app-profile
1526302485236 addons.xpi INFO Mapping [email protected] to C:\Program Files\Mozilla Firefox\browser\features\[email protected]
1526302485236 addons.xpi INFO Mapping [email protected] to C:\Program Files\Mozilla Firefox\browser\features\[email protected]
1526302485236 addons.xpi INFO Mapping [email protected] to C:\Program Files\Mozilla Firefox\browser\features\[email protected]
1526302485236 addons.xpi INFO Mapping [email protected] to C:\Program Files\Mozilla Firefox\browser\features\[email protected]
1526302485236 addons.xpi INFO Mapping [email protected] to C:\Program Files\Mozilla Firefox\browser\features\[email protected]
1526302485236 addons.xpi INFO Mapping [email protected] to C:\Program Files\Mozilla Firefox\browser\features\[email protected]
1526302485236 addons.xpi INFO Mapping [email protected] to C:\Program Files\Mozilla Firefox\browser\features\[email protected]
1526302485236 addons.xpi INFO Mapping [email protected] to C:\Program Files\Mozilla Firefox\browser\features\[email protected]
1526302485236 addons.xpi INFO Mapping [email protected] to C:\Program Files\Mozilla Firefox\browser\features\[email protected]
1526302485236 addons.xpi DEBUG Existing add-on [email protected] in app-system-defaults
1526302485236 addons.xpi DEBUG Existing add-on [email protected] in app-system-defaults
1526302485236 addons.xpi DEBUG Existing add-on [email protected] in app-system-defaults
1526302485236 addons.xpi DEBUG Existing add-on [email protected] in app-system-defaults
1526302485236 addons.xpi DEBUG Existing add-on [email protected] in app-system-defaults
1526302485238 addons.xpi DEBUG Existing add-on [email protected] in app-system-defaults
1526302485238 addons.xpi DEBUG Existing add-on [email protected] in app-system-defaults
1526302485238 addons.xpi DEBUG Existing add-on [email protected] in app-system-defaults
1526302485238 addons.xpi DEBUG Existing add-on [email protected] in app-system-defaults
1526302485238 addons.xpi INFO Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to C:\Program Files\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
1526302485238 addons.xpi DEBUG Existing add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} in app-global
1526302485238 addons.xpi DEBUG getInstallState changed: false, state: {}
1526302485332 addons.xpi-utils DEBUG Async JSON file read took 0 MS
1526302485332 addons.xpi-utils DEBUG Finished async read of XPI database, parsing...
1526302485336 addons.xpi-utils DEBUG Successfully read XPI database
Crash Annotation GraphicsCriticalError: |[C0][GFX1]: Potential driver version mismatch ignored due to missing DLLs igd10umd64 v= and igd10iumd64 v= (t=6.22361) [GFX1]: Potential driver version mismatch ignored due to missing DLLs igd10umd64 v= and igd10iumd64 v=
Crash Annotation GraphicsCriticalError: |[C0][GFX1]: Potential driver version mismatch ignored due to missing DLLs igd10umd64 v= and igd10iumd64 v= (t=2.67818) [GFX1]: Potential driver version mismatch ignored due to missing DLLs igd10umd64 v= and igd10iumd64 v=
Upvotes: 1
Views: 1871
Reputation: 193108
This error message...
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
Potential driver version mismatch ignored due to missing DLLs igd10umd64 v= and igd10iumd64 v=
*** Blocklist::_preloadBlocklistFile: blocklist is disabled
...implies that the GeckoDriver was unable to initiate/spawn a new Web Client session/instance successfully.
Your main issue is the version compatibility between the binaries you are using as follows :
Note that with geckodriver 0.19.0 the following versions are recommended:
- Firefox 55.0 (and greater)
- Selenium 3.5 (and greater)
Note that geckodriver v0.16.0 is only compatible with Selenium 3.4 and greater.
So there is a clear mismatch between Selenium Client v2.45, GeckoDriver v20.1 and Firefox v60.0.
Test
as a non-root user.driver.quit()
within tearDown(){}
method to close & destroy the WebDriver and Web Client instances gracefully.Upvotes: 1