Hi,

I am facing an issue in selenium. I have a java program, which open firefox and using driver.get type in address bar of firefox. When I run my code, firefox open but nothing if typed in address bar.

Below are the logs:

1494149380445 geckodriver INFO Listening on 127.0.0.1:33422
May 07, 2017 2:59:40 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Attempting bi-dialect session, assuming Postel's Law holds true on the remote end
1494149381101 geckodriver::marionette INFO Starting browser \\?\C:\Program Files (x86)\Mozilla Firefox\firefox.exe with args ["-marionette"]
1494149381468 addons.manager ERROR startup failed: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIFile.create]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame ::Java Srcersioputr ceer:r/o/rg:r resoeur/cmeo:d/u/lgerse//FmioldeuUlteisl/sA.djdsomn M:a:n aFgielre.Ujtsiml,s _lgienteD i1r6 5:7:: lNiSn_eE R7R0O"R _ NdOaTt_aI: NnIoT]I ASLtIaZcEkD :t rAadcdeo:n MFainlaegUetri liss _ngoett Diinri(t)i@arleiszoeudr
c
e://gre/modules/FileUtils.jsm:70 < FileUtils_getFile()@resource://gre/modules/FileUtils.jsm:42 < validateBlocklist()@resource://gre/modules/AddonManager.jsm:671 < startup()@resource://gre/modules/AddonManager.jsm:834 < startup()@resource://gre/modules/AddonManager.jsm:3129 < observe()@resource://gre/components/addonManager.js:65
1494149385742 Marionette INFO Listening on port 49383
JavaScript error: resource://gre/modules/AddonManager.jsm, line 2570: NS_ERROR_NOT_INITIALIZED: AddonManager is not initialized
May 07, 2017 2:59:46 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Falling back to original OSS JSON Wire Protocol.
May 07, 2017 2:59:46 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Falling back to straight W3C remote end connection
Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{marionette=true, firefoxOptions=org.openqa.selenium.firefox.FirefoxOptions@6895a785, browserName=firefox, moz:firefoxOptions=org.openqa.selenium.firefox.FirefoxOptions@6895a785, version=, platform=ANY}], required capabilities = Capabilities [{}]
Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:48:19 -0700'
System info: host: 'DEL2-LTJ6QQ542', ip: '192.168.1.4', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_121'
Driver info: driver.version: FirefoxDriver
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:91)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:241)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:128)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:259)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:247)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:242)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:238)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:127)
at Package1.TestCase_1.main(TestCase_1.java:12)

I have another program which I created 3 weeks ago,in another project, in another Package and class, this program has same code to open firefox and driver.get type in address bar. When I run this code, I works fine. 

Below is the log:

1494149341197 geckodriver INFO Listening on 127.0.0.1:47409
1494149341807 mozprofile::profile INFO Using profile path C:\Users\ABHISH~1\AppData\Local\Temp\rust_mozprofile.98qhxGzfvpKn
1494149341822 geckodriver::marionette INFO Starting browser C:\Program Files (x86)\Mozilla Firefox\firefox.exe with args []
1494149341822 geckodriver::marionette INFO Connecting to Marionette on localhost:49290
1494149347029 Marionette INFO Listening on port 49290
[GPU 7260] WARNING: pipe error: 109: file c:/builds/moz2_slave/m-rel-w32-00000000000000000000/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
May 07, 2017 2:59:07 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C

I am facing this issue (firefox launches nut not is typed in address bar) with all new project,package,class. Code run fine only in one project which i created earlier.

Can someone please suggest a solution.

Thanks

Abhishek

Views: 483

Attachments:

Reply to This

Adverts

© 2017   Created by Rosie Sherry.   Powered by

Badges  |  Report an Issue  |  Terms of Service