MOzilla and IE cannot be invoked for Module23 TestNG framework | Selenium Training|Java|WebDriver|TestNG|Frameworks|Videos
10% May Month Discount Avail now

Selenium Training Forum

MOzilla and IE cannot be invoked for Module23 TestNG framework

S
sANJIV sINGH Post on 13/03/2019

Chrome works fine. IE(version 11.37) and Mozilla [65.0.2 (64-bit)] doesnt work.

Eclipse Version: Luna Release (4.4.0) -- Build id: 20140612-0600

Getting below error while launching Mozilla for Module23 Part3:

 

[RemoteTestNG] detected TestNG version 6.9.6
[TestNG] Running:
C:\Users\RAJESH\AppData\Local\Temp\testng-eclipse-258490473\testng-customsuite.xml

http://gmail.com
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
conURL":null,"blocklistState":0,"blocklistURL":null,"startupData":null,"hidden":true,"installTelemetryInfo":null,"location":"app-system-defaults"}
1552439267068 addons.xpi DEBUG Updating XPIState for {"id":"webcompat@mozilla.org","syncGUID":"{2e12672b-78a7-4b1c-ad86-48cfe08f6dff}","version":"3.0.0","type":"extension","loader":null,"updateURL":null,"optionsURL":null,"optionsType":null,"optionsBrowserStyle":true,"aboutURL":null,"defaultLocale":{"name":"Web Compat","description":"Urgent post-release fixes for web compatibility.","creator":null,"developers":null,"translators":null,"contributors":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"installDate":1551113308202,"updateDate":1551113308202,"applyBackgroundUpdates":1,"path":"C:\\Program Files\\Mozilla Firefox\\browser\\features\\webcompat@mozilla.org.xpi","skinnable":false,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"toolkit@mozilla.org","minVersion":"59.0b5","maxVersion":null}],"targetPlatforms":[],"seen":true,"dependencies":[],"userPermissions":{"permissions":["webRequest","webRequestBlocking"],"origins":["<all_urls>"]},"icons":{},"iconURL":null,"blocklistState":0,"blocklistURL":null,"startupData":null,"hidden":true,"installTelemetryInfo":null,"location":"app-system-defaults"}
1552439267068 addons.xpi-utils DEBUG Updating add-on states
1552439267070 addons.xpi DEBUG Calling bootstrap method startup on formautofill@mozilla.org version 1.0
1552439267072 addons.xpi DEBUG Calling bootstrap method startup on screenshots@mozilla.org version 35.0.0
1552439267073 addons.xpi DEBUG Calling bootstrap method startup on webcompat@mozilla.org version 3.0.0
1552439267076 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1552439267076 addons.manager DEBUG Provider finished startup: XPIProvider
1552439267076 addons.manager DEBUG Starting provider: LightweightThemeManager
1552439267076 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1552439267076 addons.manager DEBUG Provider finished startup: LightweightThemeManager
1552439267077 addons.manager DEBUG Starting provider: GMPProvider
1552439267078 addons.manager DEBUG Registering shutdown blocker for GMPProvider
1552439267079 addons.manager DEBUG Provider finished startup: GMPProvider
1552439267079 addons.manager DEBUG Starting provider: PluginProvider
1552439267079 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1552439267079 addons.manager DEBUG Provider finished startup: PluginProvider
1552439267083 addons.manager DEBUG Completed startup sequence
1552439267913 addons.repository DEBUG No addons.json found.
1552439268591 addons.manager DEBUG Registering upgrade listener for formautofill@mozilla.org
1552439268644 addons.xpi DEBUG Ignoring file: name is not a valid add-on ID: C:\Users\RAJESH\AppData\Local\Temp\anonymous3379037511501065975webdriver-profile\extensions\webdriver-staging
1552439268645 addons.xpi DEBUG Existing add-on formautofill@mozilla.org in app-system-defaults
1552439268645 addons.xpi DEBUG Existing add-on screenshots@mozilla.org in app-system-defaults
1552439268645 addons.xpi DEBUG Existing add-on webcompat-reporter@mozilla.org in app-system-defaults
1552439268645 addons.xpi DEBUG Existing add-on webcompat@mozilla.org in app-system-defaults
1552439268646 addons.xpi DEBUG scanForChanges changed: false, state: {}
JavaScript error: resource://gre/modules/addons/XPIProvider.jsm, line 2625: TypeError: addon is null
1552439310194 addons.productaddons INFO sending request to: https://aus5.mozilla.org/update/3/GMP/65.0.2/20190225143501/WINNT_x86_64-msvc-x64/en-US/release/Windows_NT%2010.0.0.0.16299.371%20(x64)/default/default/update.xml
1552439311055 addons.productaddons INFO Completed downloading document
1552439312190 addons.productaddons INFO downloadXHR File download. status=200
1552439312197 addons.productaddons INFO Downloaded file will be saved to C:\Users\RAJESH\AppData\Local\Temp\tmpaddon

at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:113)
at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:119)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:216)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:207)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:120)
at com.qtpselenium.core.ddf.base.BaseTest.openBrowser(BaseTest.java:33)
at com.qtpselenium.core.ddf.testcases.DummyTestB.testB(DummyTestB.java:11)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
at org.testng.TestRunner.privateRun(TestRunner.java:773)
at org.testng.TestRunner.run(TestRunner.java:623)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
at org.testng.SuiteRunner.run(SuiteRunner.java:259)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
at org.testng.TestNG.run(TestNG.java:1018)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:114)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)
FAILED: testB
org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files\Mozilla Firefox\firefox.exe) on port 7055; process output follows:
conURL":null,"blocklistState":0,"blocklistURL":null,"startupData":null,"hidden":true,"installTelemetryInfo":null,"location":"app-system-defaults"}
1552439267068 addons.xpi DEBUG Updating XPIState for {"id":"webcompat@mozilla.org","syncGUID":"{2e12672b-78a7-4b1c-ad86-48cfe08f6dff}","version":"3.0.0","type":"extension","loader":null,"updateURL":null,"optionsURL":null,"optionsType":null,"optionsBrowserStyle":true,"aboutURL":null,"defaultLocale":{"name":"Web Compat","description":"Urgent post-release fixes for web compatibility.","creator":null,"developers":null,"translators":null,"contributors":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"installDate":1551113308202,"updateDate":1551113308202,"applyBackgroundUpdates":1,"path":"C:\\Program Files\\Mozilla Firefox\\browser\\features\\webcompat@mozilla.org.xpi","skinnable":false,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"toolkit@mozilla.org","minVersion":"59.0b5","maxVersion":null}],"targetPlatforms":[],"seen":true,"dependencies":[],"userPermissions":{"permissions":["webRequest","webRequestBlocking"],"origins":["<all_urls>"]},"icons":{},"iconURL":null,"blocklistState":0,"blocklistURL":null,"startupData":null,"hidden":true,"installTelemetryInfo":null,"location":"app-system-defaults"}
1552439267068 addons.xpi-utils DEBUG Updating add-on states
1552439267070 addons.xpi DEBUG Calling bootstrap method startup on formautofill@mozilla.org version 1.0
1552439267072 addons.xpi DEBUG Calling bootstrap method startup on screenshots@mozilla.org version 35.0.0
1552439267073 addons.xpi DEBUG Calling bootstrap method startup on webcompat@mozilla.org version 3.0.0
1552439267076 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1552439267076 addons.manager DEBUG Provider finished startup: XPIProvider
1552439267076 addons.manager DEBUG Starting provider: LightweightThemeManager
1552439267076 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1552439267076 addons.manager DEBUG Provider finished startup: LightweightThemeManager
1552439267077 addons.manager DEBUG Starting provider: GMPProvider
1552439267078 addons.manager DEBUG Registering shutdown blocker for GMPProvider
1552439267079 addons.manager DEBUG Provider finished startup: GMPProvider
1552439267079 addons.manager DEBUG Starting provider: PluginProvider
1552439267079 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1552439267079 addons.manager DEBUG Provider finished startup: PluginProvider
1552439267083 addons.manager DEBUG Completed startup sequence
1552439267913 addons.repository DEBUG No addons.json found.
1552439268591 addons.manager DEBUG Registering upgrade listener for formautofill@mozilla.org
1552439268644 addons.xpi DEBUG Ignoring file: name is not a valid add-on ID: C:\Users\RAJESH\AppData\Local\Temp\anonymous3379037511501065975webdriver-profile\extensions\webdriver-staging
1552439268645 addons.xpi DEBUG Existing add-on formautofill@mozilla.org in app-system-defaults
1552439268645 addons.xpi DEBUG Existing add-on screenshots@mozilla.org in app-system-defaults
1552439268645 addons.xpi DEBUG Existing add-on webcompat-reporter@mozilla.org in app-system-defaults
1552439268645 addons.xpi DEBUG Existing add-on webcompat@mozilla.org in app-system-defaults
1552439268646 addons.xpi DEBUG scanForChanges changed: false, state: {}
JavaScript error: resource://gre/modules/addons/XPIProvider.jsm, line 2625: TypeError: addon is null
1552439310194 addons.productaddons INFO sending request to: https://aus5.mozilla.org/update/3/GMP/65.0.2/20190225143501/WINNT_x86_64-msvc-x64/en-US/release/Windows_NT%2010.0.0.0.16299.371%20(x64)/default/default/update.xml
1552439311055 addons.productaddons INFO Completed downloading document
1552439312190 addons.productaddons INFO downloadXHR File download. status=200
1552439312197 addons.productaddons INFO Downloaded file will be saved to C:\Users\RAJESH\AppData\Local\Temp\tmpaddon

Build info: version: '2.52.0', revision: '4c2593cfc3689a7fcd7be52549167e5ccc93ad28', time: '2016-02-11 11:22:43'
System info: host: 'DESKTOP-CL11GKU', ip: '192.168.1.12', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_131'
Driver info: driver.version: FirefoxDriver
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:125)
at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:119)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:216)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:207)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:120)
at com.qtpselenium.core.ddf.base.BaseTest.openBrowser(BaseTest.java:33)
at com.qtpselenium.core.ddf.testcases.DummyTestB.testB(DummyTestB.java:11)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
at org.testng.TestRunner.privateRun(TestRunner.java:773)
at org.testng.TestRunner.run(TestRunner.java:623)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
at org.testng.SuiteRunner.run(SuiteRunner.java:259)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
at org.testng.TestNG.run(TestNG.java:1018)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:114)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)
Caused by: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
conURL":null,"blocklistState":0,"blocklistURL":null,"startupData":null,"hidden":true,"installTelemetryInfo":null,"location":"app-system-defaults"}
1552439267068 addons.xpi DEBUG Updating XPIState for {"id":"webcompat@mozilla.org","syncGUID":"{2e12672b-78a7-4b1c-ad86-48cfe08f6dff}","version":"3.0.0","type":"extension","loader":null,"updateURL":null,"optionsURL":null,"optionsType":null,"optionsBrowserStyle":true,"aboutURL":null,"defaultLocale":{"name":"Web Compat","description":"Urgent post-release fixes for web compatibility.","creator":null,"developers":null,"translators":null,"contributors":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"installDate":1551113308202,"updateDate":1551113308202,"applyBackgroundUpdates":1,"path":"C:\\Program Files\\Mozilla Firefox\\browser\\features\\webcompat@mozilla.org.xpi","skinnable":false,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"toolkit@mozilla.org","minVersion":"59.0b5","maxVersion":null}],"targetPlatforms":[],"seen":true,"dependencies":[],"userPermissions":{"permissions":["webRequest","webRequestBlocking"],"origins":["<all_urls>"]},"icons":{},"iconURL":null,"blocklistState":0,"blocklistURL":null,"startupData":null,"hidden":true,"installTelemetryInfo":null,"location":"app-system-defaults"}
1552439267068 addons.xpi-utils DEBUG Updating add-on states
1552439267070 addons.xpi DEBUG Calling bootstrap method startup on formautofill@mozilla.org version 1.0
1552439267072 addons.xpi DEBUG Calling bootstrap method startup on screenshots@mozilla.org version 35.0.0
1552439267073 addons.xpi DEBUG Calling bootstrap method startup on webcompat@mozilla.org version 3.0.0
1552439267076 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1552439267076 addons.manager DEBUG Provider finished startup: XPIProvider
1552439267076 addons.manager DEBUG Starting provider: LightweightThemeManager
1552439267076 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1552439267076 addons.manager DEBUG Provider finished startup: LightweightThemeManager
1552439267077 addons.manager DEBUG Starting provider: GMPProvider
1552439267078 addons.manager DEBUG Registering shutdown blocker for GMPProvider
1552439267079 addons.manager DEBUG Provider finished startup: GMPProvider
1552439267079 addons.manager DEBUG Starting provider: PluginProvider
1552439267079 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1552439267079 addons.manager DEBUG Provider finished startup: PluginProvider
1552439267083 addons.manager DEBUG Completed startup sequence
1552439267913 addons.repository DEBUG No addons.json found.
1552439268591 addons.manager DEBUG Registering upgrade listener for formautofill@mozilla.org
1552439268644 addons.xpi DEBUG Ignoring file: name is not a valid add-on ID: C:\Users\RAJESH\AppData\Local\Temp\anonymous3379037511501065975webdriver-profile\extensions\webdriver-staging
1552439268645 addons.xpi DEBUG Existing add-on formautofill@mozilla.org in app-system-defaults
1552439268645 addons.xpi DEBUG Existing add-on screenshots@mozilla.org in app-system-defaults
1552439268645 addons.xpi DEBUG Existing add-on webcompat-reporter@mozilla.org in app-system-defaults
1552439268645 addons.xpi DEBUG Existing add-on webcompat@mozilla.org in app-system-defaults
1552439268646 addons.xpi DEBUG scanForChanges changed: false, state: {}
JavaScript error: resource://gre/modules/addons/XPIProvider.jsm, line 2625: TypeError: addon is null
1552439310194 addons.productaddons INFO sending request to: https://aus5.mozilla.org/update/3/GMP/65.0.2/20190225143501/WINNT_x86_64-msvc-x64/en-US/release/Windows_NT%2010.0.0.0.16299.371%20(x64)/default/default/update.xml
1552439311055 addons.productaddons INFO Completed downloading document
1552439312190 addons.productaddons INFO downloadXHR File download. status=200
1552439312197 addons.productaddons INFO Downloaded file will be saved to C:\Users\RAJESH\AppData\Local\Temp\tmpaddon

at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:113)
... 32 more


===============================================
Default test
Tests run: 1, Failures: 1, Skips: 0
===============================================


===============================================
Default suite
Total tests run: 1, Failures: 1, Skips: 0
===============================================

[TestNG] Time taken by org.testng.reporters.SuiteHTMLReporter@77b52d12: 578 ms
[TestNG] Time taken by org.testng.reporters.XMLReporter@67b6d4ae: 47 ms
[TestNG] Time taken by org.testng.reporters.jq.Main@3567135c: 587 ms
[TestNG] Time taken by org.testng.reporters.EmailableReporter2@54a097cc: 55 ms
[TestNG] Time taken by [FailedReporter passed=0 failed=0 skipped=0]: 110 ms
[TestNG] Time taken by org.testng.reporters.JUnitReportReporter@531be3c5: 78 ms

S
sANJIV sINGH Reply on 13/03/2019

Project Zip file attached

D

Instructor

Demo Reply on 13/03/2019

Sanjiv, try updating the browser drivers.

S
sANJIV sINGH Reply on 14/03/2019

hi,

i tried with firefox browser versions 23, 27, 43, 47, with and without marionette capabilities to invoke browser with combinations of selenium versions 2.53, 3.0, with and without geckodriver.

I googled and followed steps to find a solution, but nothing seems to work.

 

Can you please share the details about which Selenium version, Gecko Driver version, Firefox version can be used and from where i can download these versions specifically?

 

For IE11 also, nothing seems to work based on goodle, stackoverflow and other sites.

Please provide specifi details for this issue resolution, as i have interviews and am stuck with Module 23.

Thanks!

D

Instructor

Demo Reply on 14/03/2019

Try using the latest versions of Selenium, gecko and Firefox

S
sANJIV sINGH Reply on 02/04/2019

Can you please elaborate on the specific recommended versions?

Trial and error doesnt seem to work.

Thanks!

D

Instructor

Demo Reply on 02/04/2019

For chrome you can use latest

For mozilla you can use firefox 61

 

Use latest driver exe

S
sANJIV sINGH Reply on 05/04/2019

Hi,

Selenium version doesnt need to be changed here, correct? Or do we have to change that as well?

IE11 is giving issues as well. Can you elaborate regarding the IE11, why its not running?

I have downloaded and used both 32-bit and 64-bit versions of IEDriverServer.exe. That doesnt work.

I download everything from https://www.seleniumhq.org/download/

Only Chrome is working fine.

 

Will try for Firefox.

 

Thanks!

S
sANJIV sINGH Reply on 05/04/2019

Please check above posted queries too in additon to this one..

I am reading this(below) on www.seleniumhq.org/

I didnt understand what %PATH% settings is it talking about and what to enter in the PATH variable?

Also, it says to download version 3.14.0 - Is it the Selenium version? If yes, we can get it using the maven dependency for selenium by changing the version of it right?

But which maven dependency to change for selenium version for Module 23 for IE11 to work perfectly?

Please assist..

D

Instructor

Demo Reply on 09/04/2019

Please add the internet explorer driver path in the path environment variable.