Advertisement
Guest User

error selenium

a guest
Jan 28th, 2020
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.93 KB | None | 0 0
  1. Feature: Login feature
  2. This feature will simulate user experience when login to IsitUP
  3.  
  4. Scenario: User able login with valid data # resources/features/Login.feature:4
  5. Starting ChromeDriver 79.0.3945.36 (3582db32b33893869b8c1339e8f4d9ed1816f143-refs/branch-heads/3945@{#614}) on port 42179
  6. Only local connections are allowed.
  7. Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
  8. Jan 29, 2020 6:28:51 AM org.openqa.selenium.remote.ProtocolHandshake createSession
  9. INFO: Detected dialect: W3C
  10. =================== S T A R T ======================
  11. Given User open login page # TestStepDef.User_open_login_page()
  12. And User fill login email address # TestStepDef.User_fill_login_email_address()
  13. And User fill login password # TestStepDef.User_fill_login_password()
  14. And User click login button # TestStepDef.User_click_login_button()
  15. Then User redirect to dashboard page # TestStepDef.User_redirect_to_dashboard_page()
  16. org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":"//div[contains (text(),'Dashboard')]"}
  17. (Session info: headless chrome=79.0.3945.130)
  18. For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/no_such_element.html
  19. Build info: version: '4.0.0-alpha-2', revision: 'f148142cf8', time: '2019-07-01T20:55:26'
  20. 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'
  21. Driver info: org.openqa.selenium.chrome.ChromeDriver
  22. 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}
  23. Session ID: 872567f9b33902d52a42b1e824b8c936
  24. *** Element info: {Using=xpath, value=//div[contains (text(),'Dashboard')]}
  25. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  26. at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  27. at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  28. at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  29. at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:191)
  30. at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:125)
  31. at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:52)
  32. at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:161)
  33. at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
  34. at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:576)
  35. at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:327)
  36. at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:445)
  37. at org.openqa.selenium.By$ByXPath.findElement(By.java:353)
  38. at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:319)
  39. at basesetting.Chrome.Verify_Dashboard_Page(Chrome.java:54)
  40. at stepDefinitions.TestStepDef.User_redirect_to_dashboard_page(TestStepDef.java:43)
  41. at ✽.User redirect to dashboard page(file:resources/features/Login.feature:9)
  42.  
  43. And User quit the browser # TestStepDef.User_quit_the_browser()
  44. This test force quit because :There is error with this test
  45. ==================== E N D =======================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement