Selenium WebDriver – Delete cookies and restart the browser during the test

I have a test case to test is the cart items still exist after delete cookies and restart the browser

  1.     Add the items to shopping cart (there will be a count to indicated number of items added)
  2. Delete the cookies on the browser,
  3. Close the browser
  4. Relaunch the browser
  5. Check is the shopping cart count items still exists

my main code are below.


// 1. Add items to shopping cart

// code go here
// 2. Clear the cookies on the browser

driver.manage().deleteAllCookies();

driver.navigate().refresh();

// 3. Close the browser

driver.close();
ProfilesIni firProfiles = new ProfilesIni();

FirefoxProfile wbdrverprofile = firProfiles.getProfile("default");

// 4. Relaunch the browser

driver = new FirefoxDriver(wbdrverprofile);

driver.get("http://www.google.com");
Boolean isCartCountExists = driver.findElements(By.id(cartCount)).size()!=0;

if(isCartCountExists == true){

System.out.println("Test Failed.");

}else{

System.out.println("Test Passed.")

}

@AfterTest code


@AfterTest

public void closeBrowser(){
driver.close();

ExistingmozillaBrowser=null;
}

Getting error log below


[TestNG] Running:
FAILED CONFIGURATION: @AfterTest closeBrowser

org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with the remote browser. It may have died.

Build info: version: '2.44.0', revision: '76d78cf', time: '2014-10-23 20:03:00'

System info: host: 'C111400215M4232', ip: '192.168.0.11', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_45'

Driver info: driver.version: RemoteWebDriver

at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:593)

at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:614)

at org.openqa.selenium.remote.RemoteWebDriver.close(RemoteWebDriver.java:463)

at testCases.SuiteBase.closeWebBrowser(SuiteBase.java:380)

at testCases.ModuleOne.myTestCase01.closeBrowser(myTestCase01.java:387)

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

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

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

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

at org.testng.TestRunner.afterRun(TestRunner.java:1014)

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

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

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

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

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

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

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

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

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

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

at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)

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

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

Caused by: org.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:7056 [/127.0.0.1] failed: Connection refused: connect

at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:140)

at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:318)

at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363)

at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219)

at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195)

at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86)

at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108)

at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)

at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)

at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)

at org.openqa.selenium.remote.HttpCommandExecutor.fallBackExecute(HttpCommandExecutor.java:215)

at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:184)

at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.execute(NewProfileExtensionConnection.java:165)

at org.openqa.selenium.firefox.FirefoxDriver$LazyCommandExecutor.execute(FirefoxDriver.java:362)

at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:572)

... 26 more

Caused by: java.net.ConnectException: Connection refused: connect

at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)

at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)

at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)

at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)

at java.net.AbstractPlainSocketImpl.connect(Unknown Source)

at java.net.PlainSocketImpl.connect(Unknown Source)

at java.net.SocksSocketImpl.connect(Unknown Source)

at java.net.Socket.connect(Unknown Source)

at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:72)

at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:123)

... 40 more
FAILED: myTestCase01Test("myTestCase01", "pc", "laptop", "2", "usd")

org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with the remote browser. It may have died.

Build info: version: '2.44.0', revision: '76d78cf', time: '2014-10-23 20:03:00'

System info: host: 'C111400215M4232', ip: '192.168.0.11', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_45'

Driver info: driver.version: RemoteWebDriver

at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:593)

at org.openqa.selenium.remote.RemoteWebDriver.findElements(RemoteWebDriver.java:377)

at org.openqa.selenium.remote.RemoteWebDriver.findElementsByXPath(RemoteWebDriver.java:453)

at org.openqa.selenium.By$ByXPath.findElements(By.java:352)

at org.openqa.selenium.remote.RemoteWebDriver.findElements(RemoteWebDriver.java:340)

at pageObjects.HomePage.check_noCartCount(HomePage.java:550)

at testCases.ModuleOne.myTestCase01.myTestCase01Test(myTestCase01.java:317)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)

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

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

Caused by: org.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:7056 [/127.0.0.1] failed: Connection refused: connect

at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:140)

at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:318)

at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363)

at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219)

at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195)

at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86)

at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108)

at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)

at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)

at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)

at org.openqa.selenium.remote.HttpCommandExecutor.fallBackExecute(HttpCommandExecutor.java:215)

at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:184)

at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.execute(NewProfileExtensionConnection.java:165)

at org.openqa.selenium.firefox.FirefoxDriver$LazyCommandExecutor.execute(FirefoxDriver.java:362)

at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:572)

... 30 more

Caused by: java.net.ConnectException: Connection refused: connect

at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)

at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)

at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)

at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)

at java.net.AbstractPlainSocketImpl.connect(Unknown Source)

at java.net.PlainSocketImpl.connect(Unknown Source)

at java.net.SocksSocketImpl.connect(Unknown Source)

at java.net.Socket.connect(Unknown Source)

at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:72)

at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:123)

... 44 more
===============================================

Default test

Tests run: 1, Failures: 1, Skips: 0

Configuration Failures: 1, Skips: 0

===============================================
===============================================

Default suite

Total tests run: 1, Failures: 1, Skips: 0

Configuration Failures: 1, Skips: 0

===============================================

It seem like after close the browser, the test unable to continue after restart. Any help will be appreciate. Thanks.

Add Comment
2 Answer(s)
Best answer

First of its a  very nicely written questions.

Can you try this
driver.close();
driver.quit();

and after that try
driver = new FirefoxDriver();

Do let us know what the outcome is after the change.

Thanks
Virender

Virender Singh Professor Answered on May 12, 2015.

Hi Virender Singh

Thank for your compliment and fast reply.

Yeah, I have tested before with drive.close() and drive.quit() as well but it get

driver.close() error log


FAILED CONFIGURATION: @AfterTest closeBrowser

org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with the remote browser. It may have died.

driver.quit(0 error log


FAILED CONFIGURATION: @AfterTest closeBrowser

org.openqa.selenium.remote.SessionNotFoundException: The FirefoxDriver cannot be used after quit() was called.

It seem like after delete the cookies and restart the browser, it was unable to continue the rest of test steps. How can I solve this? Thank you

ps: I’m using default firefox profile is because the testing needed SSO certification.

on May 12, 2015.

What is the FF version and WebDriver version?

Virender

on May 12, 2015.

FF 35.0 & Selenium 2.44.0

on May 12, 2015.

Let me try it at home and get back to you on this. I think FF version might be the culprit. If you can change the version of FF and see it on later version. I just did it on version 34 of FF and it seems to work fine.

Virender

on May 12, 2015.

That’s weird, I downgrade and tested with FF34 but I get error

 FAILED CONFIGURATION: @AfterTest closeBrowser org.openqa.selenium.WebDriverException: Session not found: d694a15d-7e2b-4f86-9225-52387e5d616e 
there is one line from the error log
 Caused by: org.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:7056 [/127.0.0.1] failed: Connection refused: connect 
Could it be the root cause of failure?Mind to paste the code you tested in your environment? I want to compare what I missed. Thanks.

on May 13, 2015.

Just one small question here, it is possible that your @AfterTest method is called on a different thread?

Can you print out your thread ID both in AfterTest and the Test method.

Thanks
Virender

on May 13, 2015.

SO basically here is the outcome

– I tested exactly as you suggested but it works fine on my system.

There are only two things that I can see can cause this problem
– You have some other test which is closing the browser before this test tries to close the browser. As a result this exception is thrown.
– Or may be your AfterClass method is called on different thread making it loose the original driver object.

Try to check for both and do let me know.

Virender

on May 13, 2015.

Hi again,

as requested, I print out thread ID

at @Test


Start of Thread Id ::1

at @AfterTest


End of Thread Id ::1

correction, this is tested at FF35, selenium 2.44.0
btw, I test at another pc with FF37, selenium 2.45.0
both getting the same results

on May 13, 2015.

I suspect someone else in a different test is closing the driver. I think one quick solution to this will be

@AfterTest
public void closeBrowser(){
if(driver){
driver.close();
 }
ExistingmozillaBrowser=null;
}

But I think it will be better to understand, is the same driver being passed around to different tests? And other tests do they have the same AfterTest method, where they try to close the driver?

But this quick fix should solve it for you.

Thanks
Virender

on May 13, 2015.

if(driver){

driver.close();

}

ExistingmozillaBrowser=null;

}

something missing at if(driver)?

on May 13, 2015.

In Java it should mean
if(driver != null) but if doesnt we can just use this one (driver!=null)

Virender

on May 13, 2015.

the problem solved now, really appreciate your help, Virender. Thanks!

on May 14, 2015.

loadWebBrowser  method is a simpe browser factory. It seems to be not doing anything to close or quit the driver.

Can you share this code some where if possible, the whole code?

testCases.SuiteBase.closeWebBrowser is called by myTestCase01, can you check  this

at testCases.SuiteBase.closeWebBrowser(SuiteBase.java:380)

at testCases.ModuleOne.myTestCase01.closeBrowser(myTestCase01.java:387)

this is already closing the WebDriver. After that your @aftertest is also trying to close the browser, when the browser is already null.

Can you check if this is happening?

Thanks
Virender

on May 14, 2015.
Add Comment

Hi,

I have a similar test, wherein I have to login as user1->perform some set of actions->logout and close the browser. Then login as user2->perform different set of actions->logout and close the browser.

When I execute my script, the driver opens the browser and performs the set of actions for user 1 and closes the browser. But, it is not restarting the browser to perform actions for user2. It shows the below stack trace.

 

org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files (x86)\Mozilla Firefox\firefox.exe) on port 7056; process output follows:
Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
 System info: host: 'RB912395', ip: '10.246.1.85', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0'
 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:128)
 at nl.rabobank.gict.zrf.testautomation.selenext.browserui.InitTest.<init>(InitTest.java:77)
 at nl.rabobank.gict.zrf.testautomation.sbf.acceptance.afhandelen.AfCommonUtils.useBrowser(AfCommonUtils.java:76)
 at nl.rabobank.gict.zrf.testautomation.sbf.acceptance.afhandelen.AfCommonUtils.createBrowser(AfCommonUtils.java:48)
 Caused by: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7056 after 45000 ms. Firefox console output:
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:128)
 at nl.rabobank.gict.zrf.testautomation.selenext.browserui.InitTest.<init>(InitTest.java:77)
 at nl.rabobank.gict.zrf.testautomation.sbf.acceptance.afhandelen.AfCommonUtils.useBrowser(AfCommonUtils.java:76)
 at nl.rabobank.gict.zrf.testautomation.sbf.acceptance.afhandelen.AfCommonUtils.createBrowser(AfCommonUtils.java:48)
 at nl.rabobank.gict.zrf.testautomation.sbf.acceptance.afhandelen.AfCucumberStepDefs.loginLocalBankUser(AfCucumberStepDefs.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
 at java.lang.reflect.Method.invoke(Method.java:613)
 at cucumber.runtime.Utils$1.call(Utils.java:37)
 at cucumber.runtime.Timeout.timeout(Timeout.java:13)
 at cucumber.runtime.Utils.invoke(Utils.java:31)
 at cucumber.runtime.java.JavaStepDefinition.execute(JavaStepDefinition.java:38)
 at cucumber.runtime.StepDefinitionMatch.runStep(StepDefinitionMatch.java:37)
 at cucumber.runtime.Runtime.runStep(Runtime.java:299)
 at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:44)
 at cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:39)
 at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:44)
 at cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:91)
 at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63)
 at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18)
 at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
 at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
 at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
 at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
 at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
 at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
 at cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:70)
 at cucumber.api.junit.Cucumber.runChild(Cucumber.java:93)
 at cucumber.api.junit.Cucumber.runChild(Cucumber.java:37)
 at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
 at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
 at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
 at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
 at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
 at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
 at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
 at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
 at cucumber.api.junit.Cucumber.run(Cucumber.java:98)
 at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
 at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
 at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
 at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
 at java.lang.reflect.Method.invoke(Method.java:613)
 at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7056 after 45000 ms. Firefox console output:
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:128)
 at nl.rabobank.gict.zrf.testautomation.selenext.browserui.InitTest.<init>(InitTest.java:77)
 at nl.rabobank.gict.zrf.testautomation.sbf.acceptance.afhandelen.AfCommonUtils.useBrowser(AfCommonUtils.java:76)
 at nl.rabobank.gict.zrf.testautomation.sbf.acceptance.afhandelen.AfCommonUtils.createBrowser(AfCommonUtils.java:48)
 at nl.rabobank.gict.zrf.testautomation.sbf.acceptance.afhandelen.AfCucumberStepDefs.loginLocalBankUser(AfCucumberStepDefs.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
 at java.lang.reflect.Method.invoke(Method.java:613)
 at cucumber.runtime.Utils$1.call(Utils.java:37)
 at cucumber.runtime.Timeout.timeout(Timeout.java:13)
 at cucumber.runtime.Utils.invoke(Utils.java:31)
 at cucumber.runtime.java.JavaStepDefinition.execute(JavaStepDefinition.java:38)
 at cucumber.runtime.StepDefinitionMatch.runStep(StepDefinitionMatch.java:37)
 at cucumber.runtime.Runtime.runStep(Runtime.java:299)
 at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:44)
 at cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:39)
 at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:44)
 at cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:91)
 at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63)
 at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18)
 at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
 at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
 at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
 at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
 at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
 at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
 at cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:70)
 at cucumber.api.junit.Cucumber.runChild(Cucumber.java:93)
 at cucumber.api.junit.Cucumber.runChild(Cucumber.java:37)
 at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
 at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
 at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
 at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
 at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
 at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
 at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
 at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
 at cucumber.api.junit.Cucumber.run(Cucumber.java:98)
 at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
 at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
 at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
 at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
 at java.lang.reflect.Method.invoke(Method.java:613)
 at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)

 

Can you please throw some light on what I could be missing?

Thanks!

csnathan Default Answered on May 23, 2016.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.