Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Feature: Login feature
- This feature will simulate user experience when login to IsitUP
- Scenario: User able login with valid data # resources/features/Login.feature:4
- Starting ChromeDriver 79.0.3945.36 (3582db32b33893869b8c1339e8f4d9ed1816f143-refs/branch-heads/3945@{#614}) on port 42179
- Only local connections are allowed.
- Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
- Jan 29, 2020 6:28:51 AM org.openqa.selenium.remote.ProtocolHandshake createSession
- INFO: Detected dialect: W3C
- =================== S T A R T ======================
- Given User open login page # TestStepDef.User_open_login_page()
- And User fill login email address # TestStepDef.User_fill_login_email_address()
- And User fill login password # TestStepDef.User_fill_login_password()
- And User click login button # TestStepDef.User_click_login_button()
- Then User redirect to dashboard page # TestStepDef.User_redirect_to_dashboard_page()
- org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":"//div[contains (text(),'Dashboard')]"}
- (Session info: headless chrome=79.0.3945.130)
- For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/no_such_element.html
- Build info: version: '4.0.0-alpha-2', revision: 'f148142cf8', time: '2019-07-01T20:55:26'
- System info: host: 'Ahmads-MacBook-Pro.local', ip: '10.30.30.85', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.14.6', java.version: '1.8.0_221'
- Driver info: org.openqa.selenium.chrome.ChromeDriver
- Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 79.0.3945.130, chrome: {chromedriverVersion: 79.0.3945.36 (3582db32b3389..., userDataDir: /var/folders/yx/9tpvcxwx025...}, goog:chromeOptions: {debuggerAddress: localhost:50558}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: MAC, platformName: MAC, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify}
- Session ID: 872567f9b33902d52a42b1e824b8c936
- *** Element info: {Using=xpath, value=//div[contains (text(),'Dashboard')]}
- at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
- at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
- at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
- at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:191)
- at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:125)
- at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:52)
- at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:161)
- at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
- at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:576)
- at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:327)
- at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:445)
- at org.openqa.selenium.By$ByXPath.findElement(By.java:353)
- at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:319)
- at basesetting.Chrome.Verify_Dashboard_Page(Chrome.java:54)
- at stepDefinitions.TestStepDef.User_redirect_to_dashboard_page(TestStepDef.java:43)
- at ✽.User redirect to dashboard page(file:resources/features/Login.feature:9)
- And User quit the browser # TestStepDef.User_quit_the_browser()
- This test force quit because :There is error with this test
- ==================== E N D =======================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement