?[31mFailed scenarios:?[0m
?[31msrc/test/resources/features/example.feature:17 ?[0m# amazon_mobile_phone
2 Scenarios (?[31m1 failed?[0m, ?[33m1 undefined?[0m)
10 Steps (?[31m1 failed?[0m, ?[33m8 undefined?[0m, ?[32m1 passed?[0m)
0m14.571s
org.openqa.selenium.NoSuchSessionException: Tried to run command without establishing a connection
Build info: version: '3.141.0', revision: '2ecb7d9a', time: '2018-10-31T20:09:30'
System info: host: 'sergio-Alienware-17-R2', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.18.0-11-generic', java.version: '11.0.1'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 63.0.3, javascriptEnabled: true, moz:accessibilityChecks: false, moz:geckodriverVersion: 0.23.0, moz:headless: false, moz:processID: 25959, moz:profile: /tmp/rust_mozprofile.QoQqgA..., moz:useNonSpecCompliantPointerOrigin: false, moz:webdriverClick: true, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, platformVersion: 4.18.0-11-generic, rotatable: false, setWindowRect: true, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify}
Session ID: 7f9f2efc-0aec-41e4-8f68-820ba47fcac8
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at org.openqa.selenium.remote.RemoteWebDriver$RemoteWebDriverOptions$RemoteTimeouts.pageLoadTimeout(RemoteWebDriver.java:792)
at net.thucydides.core.webdriver.TimeoutsFacade.pageLoadTimeout(TimeoutsFacade.java:38)
at com.hfc.demo.pageObjects.AmazonHome.waitLoad(AmazonHome.java:23)
at com.hfc.demo.serenitySteps.UserSteps.iAmInAmazonWebPage(UserSteps.java:15)
at com.hfc.demo.serenitySteps.UserSteps$$EnhancerByCGLIB$$8c35ea6d.CGLIB$iAmInAmazonWebPage$0(<generated>)
at com.hfc.demo.serenitySteps.UserSteps$$EnhancerByCGLIB$$8c35ea6d$$FastClassByCGLIB$$f820b5a2.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at net.thucydides.core.steps.StepInterceptor.invokeMethod(StepInterceptor.java:464)
at net.thucydides.core.steps.StepInterceptor.executeTestStepMethod(StepInterceptor.java:449)
at net.thucydides.core.steps.StepInterceptor.runTestStep(StepInterceptor.java:424)
at net.thucydides.core.steps.StepInterceptor.runOrSkipMethod(StepInterceptor.java:165)
at net.thucydides.core.steps.StepInterceptor.testStepResult(StepInterceptor.java:152)
at net.thucydides.core.steps.StepInterceptor.intercept(StepInterceptor.java:70)
at com.hfc.demo.serenitySteps.UserSteps$$EnhancerByCGLIB$$8c35ea6d.iAmInAmazonWebPage(<generated>)
at com.hfc.demo.stepDefinitions.GherkinDefinitions.iAmInAmazonWebPage(GherkinDefinitions.java:16)
at ✽.I am in amazon webpage(src/test/resources/features/example.feature:8)
You can implement missing steps with the snippets below:
@When("^I look for iphone (\\d+)s in the searchBox$")
public void i_look_for_iphone_s_in_the_searchBox(int arg1) {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}
@Then("^I see a list of results$")
public void i_see_a_list_of_results() {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}
@Then("^I want to see the first item$")
public void i_want_to_see_the_first_item() {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}
@Then("^I want to add it to the shopping cart$")
public void i_want_to_add_it_to_the_shopping_cart() {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}
@When("^I look for xiamoi redmi note in the searchBox$")
public void i_look_for_xiamoi_redmi_note_in_the_searchBox() {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}
@Then("^I want to see the second item$")
public void i_want_to_see_the_second_item() {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}