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)