Test case failed

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.

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

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

You should receive :

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