Finds web element in the first test case, but does not find the same web element in the second

  • Katalon Studio Version:
    N/A (ontly browser)

  • OS Version:
    |Edition|Windows 10 Enterprise|
    |Installed on|‎26/‎07/‎2021|
    |OS build|19042.1110|
    |Experience|Windows Feature Experience Pack 120.2212.3530.0|

  • Browser Version:
    Katalon Recorder

Steps to Reproduce:

  1. Create a scenario using the Record tool.
  2. Create a second test case and copy the first scenario steps to the second.
  3. When running the robot it will pass on the first and break in the second always.

Expected behavior:
You could have the “duplicate scenario” command, but you don’t. The expected behavior would be to run both scenarios because the first is copy of the second. But it doesn’t work. It has a specific web element that it only encounters in the first scenario and in the second gives “unknown error”


Hi @b.soares,
From your screenshot, I guess that with the first test case you had logged in successfully, so when you opened the URL in the second test case, it redirected to another page, not the login page.
If this was the scenario, maybe you can try log out at the end of the first test case, before executing the second one.