Test case failed


#1

Hello, I recorded a web application simple login test case, after running the test case the second time it fails, I created the test case for the same test scenario but still, it fails.


#2

what does your code look like? what error are you getting? Could be many reasons for the fail.


#3


#4

it’s failing because it can’t find the text field with the id txt-password , this could be because one of the steps did the wrong action(clicked the wrong button for example) so the script is not on the right webpage and it cant find the right object

When you are on the webpage where this steps runs go to the browser console and type

$x("//input[@id=‘txt-password’]")
You should receive :
[input#txt-password.form-control]

if not you are on the wrong page
Can you post all the Recorded Actions please ,so we can see what the script is doing