(Session info: chrome=78.0.3904.108)
(Driver info: chromedriver=2.43.600210 (68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 10.0.18362 x86_64)
at Object.checkLegacyResponse (smashtest\node_modules\selenium-webdriver\lib\error.js:593:13)
at parseHttpResponse (smashtest\node_modules\selenium-webdriver\lib\http.js:554:13)
at Executor.execute (smashtest\node_modules\selenium-webdriver\lib\http.js:489:26)
at process._tickCallback (internal/process/next_tick.js:68:7)
Accept alert
or Dismiss alert
g('varname', value)
and access it as js variable with varname in subsequent code blocks
response.response.body
, or, if you upgrade to 1.6.15 you should be able to access it via response.body
. The response
object is available in any step following the step where the request was made from. It is also the return value of the request function call. So....
Make a request {
await get(`https://site.com/endpoint`);
}
Make another request {
await get(`https://site.com/endpoint2/${response.body.value1}`);
}
Make requests {
let response = await get(`https://site.com/endpoint`);
let response2 = await get(`https://site.com/endpoint2/${response.body.value1}`);
}
taskkill /F /IM geckodriver.exe
(https://stackoverflow.com/questions/40702478/how-to-kill-many-geckodriver-exe-processes/40704072#40704072)