Unable to pass url in firefox and chrome by using selenium webdriver

0 votes

Hi All,

I am not able to run the script by using selenium webdriver and getting the below error. Please help me on this

Chrome browser version-74.0.3729.108 (Official Build) (32-bit)

Firefix Browser version--43.0.1

selenium-server-standalone-2.52.0

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:

ovider

1556695009857 addons.manager DEBUG Registering shutdown blocker for PluginProvider

1556695009858 addons.manager DEBUG Provider finished startup: PluginProvider

1556695009859 addons.manager DEBUG Completed startup sequence

JavaScript error: resource://gre/components/SanityTest.js, line 287: NS_ERROR_FILE_IS_LOCKED: Component returned failure code: 0x8052000e (NS_ERROR_FILE_IS_LOCKED) [nsIPrefService.savePrefFile]

1556695013401 addons.manager DEBUG Starting provider: <unnamed-provider>

1556695013402 addons.manager DEBUG Registering shutdown blocker for <unnamed-provider>

1556695013403 addons.manager DEBUG Provider finished startup: <unnamed-provider>

1556695014054 DeferredSave.extensions.json DEBUG Starting write

1556695014501 addons.repository DEBUG No addons.json found.

1556695014503 DeferredSave.addons.json DEBUG Save changes

1556695014515 DeferredSave.addons.json DEBUG Starting timer

1556695014580 addons.manager DEBUG Starting provider: PreviousExperimentProvider

1556695014580 addons.manager DEBUG Registering shutdown blocker for PreviousExperimentProvider

1556695014581 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider

1556695014615 DeferredSave.extensions.json WARN Write failed: Win error 32 during operation move on file C:\Users\C-CLO-~2\AppData\Local\Temp\anonymous5776402914041591817webdriver-profile\extensions.json.tmp (The process cannot access the file because it is being used by another process.


) ((unknown module)) No traceback available

1556695014617 addons.xpi-utils WARN Failed to save XPI database: Win error 32 during operation move on file C:\Users\C-CLO-~2\AppData\Local\Temp\anonymous5776402914041591817webdriver-profile\extensions.json.tmp (The process cannot access the file because it is being used by another process.


) ((unknown module)) No traceback available

1556695014619 addons.xpi-utils WARN Failed to save XPI database: Win error 32 during operation move on file C:\Users\C-CLO-~2\AppData\Local\Temp\anonymous5776402914041591817webdriver-profile\extensions.json.tmp (The process cannot access the file because it is being used by another process.


) ((unknown module)) No traceback available

1556695014620 addons.xpi-utils WARN Failed to save XPI database: Win error 32 during operation move on file C:\Users\C-CLO-~2\AppData\Local\Temp\anonymous5776402914041591817webdriver-profile\extensions.json.tmp (The process cannot access the file because it is being used by another process.


) ((unknown module)) No traceback available

1556695014621 addons.xpi-utils WARN Failed to save XPI database: Win error 32 during operation move on file C:\Users\C-CLO-~2\AppData\Local\Temp\anonymous5776402914041591817webdriver-profile\extensions.json.tmp (The process cannot access the file because it is being used by another process.


) ((unknown module)) No traceback available

1556695014621 addons.xpi-utils WARN Failed to save XPI database: Win error 32 during operation move on file C:\Users\C-CLO-~2\AppData\Local\Temp\anonymous5776402914041591817webdriver-profile\extensions.json.tmp (The process cannot access the file because it is being used by another process.


) ((unknown module)) No traceback available

1556695014623 DeferredSave.addons.json DEBUG Starting write

1556695014766 DeferredSave.addons.json WARN Write failed: Win error 32 during operation move on file C:\Users\C-CLO-~2\AppData\Local\Temp\anonymous5776402914041591817webdriver-profile\addons.json.tmp (The process cannot access the file because it is being used by another process.


) ((unknown module)) No traceback available

1556695014768 addons.repository ERROR SaveDBToDisk failed: Win error 32 during operation move on file C:\Users\C-CLO-~2\AppData\Local\Temp\anonymous5776402914041591817webdriver-profile\addons.json.tmp (The process cannot access the file because it is being used by another process.


) ((unknown module)) No traceback available

JavaScript error: , line 0: NS_ERROR_FILE_IS_LOCKED: Component returned failure code: 0x8052000e (NS_ERROR_FILE_IS_LOCKED) [nsIAppStartup.trackStartupCrashEnd]


at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:122)

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:218)

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.baseClasses.BrowserFactory.openBrowser(BrowserFactory.java:20)

at com.baseClasses.Listener.beforeInvocation(Listener.java:23)

at org.testng.internal.invokers.InvokedMethodListenerInvoker$InvokeBeforeInvocationWithoutContextStrategy.callMethod(InvokedMethodListenerInvoker.java:84)

at org.testng.internal.invokers.InvokedMethodListenerInvoker.invokeListener(InvokedMethodListenerInvoker.java:62)

at org.testng.internal.Invoker.runInvokedMethodListeners(Invoker.java:552)

at org.testng.internal.Invoker.invokeMethod(Invoker.java:617)

at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:816)

at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1124)

at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)

at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)

at org.testng.TestRunner.privateRun(TestRunner.java:774)

at org.testng.TestRunner.run(TestRunner.java:624)

at org.testng.SuiteRunner.runTest(SuiteRunner.java:359)

at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:354)

at org.testng.SuiteRunner.privateRun(SuiteRunner.java:312)

at org.testng.SuiteRunner.run(SuiteRunner.java:261)

at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)

at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)

at org.testng.TestNG.runSuitesSequentially(TestNG.java:1215)

at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)

at org.testng.TestNG.run(TestNG.java:1048)

at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132)

at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:236)

at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:81)

null

testCaseName :[TC_Callingqueue_0001]


null

excelReport.testData.get(ScriptExecution) :null

java.lang.NullPointerException

at com.baseClasses.PDFResultReport.writeChartToPDF(PDFResultReport.java:864)

at com.baseClasses.BaseClass.afterClass(BaseClass.java:889)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)

at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:510)

at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:211)

at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)

at org.testng.internal.TestMethodWorker.invokeAfterClassMethods(TestMethodWorker.java:220)

at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)

at org.testng.TestRunner.privateRun(TestRunner.java:774)

at org.testng.TestRunner.run(TestRunner.java:624)

at org.testng.SuiteRunner.runTest(SuiteRunner.java:359)

at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:354)

at org.testng.SuiteRunner.privateRun(SuiteRunner.java:312)

at org.testng.SuiteRunner.run(SuiteRunner.java:261)

at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)

at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)

at org.testng.TestNG.runSuitesSequentially(TestNG.java:1215)

at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)

at org.testng.TestNG.run(TestNG.java:1048)

at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132)

at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:236)

at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:81)

The document has been closed. You can't add any Elements.

paragraph  :::::[]

testCaseName1.size() :1

testCaseName1.get(k)  ::::::TC

java.lang.NullPointerException

at com.baseClasses.PDFResultReport.generatePDFSummaryReport1(PDFResultReport.java:1107)

at com.baseClasses.BaseClass.afterSuite(BaseClass.java:847)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)

at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:510)

at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:211)

at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)

at org.testng.SuiteRunner.privateRun(SuiteRunner.java:329)

at org.testng.SuiteRunner.run(SuiteRunner.java:261)

at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)

at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)

at org.testng.TestNG.runSuitesSequentially(TestNG.java:1215)

at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)

at org.testng.TestNG.run(TestNG.java:1048)

at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132)

at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:236)

at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:81)
May 1, 2019 in Selenium by anonymous

edited May 2, 2019 by Omkar 1,611 views
Hello, can you please share your code snippet or screenshot or your selenium code, to understand better what's causing the error.

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Selenium

0 votes
1 answer
0 votes
1 answer

How to disable cookies using webdriver for Chrome and FireFox JAVA?

The solution for Firefox is below: FirefoxProfile profile ...READ MORE

answered Aug 8, 2018 in Selenium by Meci Matt
• 9,460 points
7,317 views
0 votes
8 answers

How to open a link in new tab of chrome browser using Selenium WebDriver?

This below code works for me in ...READ MORE

answered Dec 14, 2020 in Selenium by Gitika
• 65,770 points
103,025 views
0 votes
1 answer
0 votes
1 answer

How to open Firefox window in Incognito mode using Selenium Webdriver?

Hi Pritha, you can use this code ...READ MORE

answered May 14, 2019 in Selenium by Anvi
• 14,150 points
7,100 views
+1 vote
1 answer
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,500 points
13,674 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
9,143 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,910 points
7,221 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 3, 2020 in Selenium by Sri
• 3,190 points
7,875 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP