Skip to content

Instantly share code, notes, and snippets.

@seleniumgists
Created June 18, 2020 23:40
Show Gist options
  • Select an option

  • Save seleniumgists/13213bb20b7e728704d13ef15b1b4080 to your computer and use it in GitHub Desktop.

Select an option

Save seleniumgists/13213bb20b7e728704d13ef15b1b4080 to your computer and use it in GitHub Desktop.
generated automatically from #selenium on seleniumhq slack
Emitted | step.passed (I click {"xpath":"//div[contains(text(), 'Logout')]"})
Emitted | step.finish (I click {"xpath":"//div[contains(text(), 'Logout')]"})
Emitted | step.start (I wait 5)
Object: isLoggedOut
I wait 5
Emitted | step.passed (I wait 5)
Emitted | step.finish (I wait 5)
Emitted | step.start (I dont see "<mailto:testuser123@gmail.com|testuser123@gmail.com>")
I dont see "<mailto:testuser123@gmail.com|testuser123@gmail.com>"
[1] Error | invalid session id: invalid session id
Emitted | step.failed (I dont see "<mailto:testuser123@gmail.com|testuser123@gmail.com>")
Emitted | step.finish (I dont see "<mailto:testuser123@gmail.com|testuser123@gmail.com>")
[1] Error | invalid session id: invalid session id
[1] Starting <teardown> session
Emitted | test.failed ([object Object])
Emitted | test.after ([object Object])
[1] <teardown> Stopping recording promises
› <screenshotOnFail> Test failed, saving screenshot
(node:3142) UnhandledPromiseRejectionWarning: unknown error: Session [7010ef10d732a69ca57c9fb108a61c99] was terminated due to BROWSER_TIMEOUT
at getErrorFromResponseBody (/var/jenkins_home/workspace/Jenkins_job/test-automation/node_modules/webdriver/build/utils.js:124:10)
at Request._callback (/var/jenkins_home/workspace/Jenkins_job/test-automation/node_modules/webdriver/build/request.js:111:64)
at Request.self.callback (/var/jenkins_home/workspace/Jenkins_job/test-automation/node_modules/request/request.js:185:22)
at Request.emit (events.js:198:13)
at Request.EventEmitter.emit (domain.js:448:20)
at Request.<anonymous> (/var/jenkins_home/workspace/Jenkins_job/test-automation/node_modules/request/request.js:1161:10)
at Request.emit (events.js:198:13)
at Request.EventEmitter.emit (domain.js:448:20)
at IncomingMessage.<anonymous> (/var/jenkins_home/workspace/Jenkins_job/test-automation/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:286:20)
(node:3142) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 54)```
--
We're using:
Node & CodeceptJS
```node --version
v10.20.1
--
"codeceptjs": "^2.6.1",```
Selenium:
```$ kc get pod selenium-hub-6974887658-6s55z -o yaml | grep image
image: selenium/hub:3.141
$ kc get pod selenium-node-chrome-6fb5bcbf9f-qk9qm -o yaml | grep image
image: selenium/node-chrome:3.141
$ kc exec -it selenium-node-chrome-6fb5bcbf9f-qk9qm -- chromedriver --version
ChromeDriver 83.0.4103.39 (ccbf011cb2d2b19b506d844400483861342c20cd-refs/branch-heads/4103@{#416})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment