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)
Open Firefox
Navigate to 'localhost:4200'
{{username}} = 'admin'
{{password}} = '12345'
Type {{username}} into 'input[name=username]'
Type '{{password}}[enter]' into 'input[name=password]'
--debug
option help here? It wants a hash but I don't know what to do with that.
Open Firefox
Navigate to 'localhost:4200'
..
{{username}} = 'admin'
{{password}} = '12345'
Type {{username}} into 'input[name=username]'
Type '{{password}}[enter]' into 'input[name=password]'