When you encounter the following exception:
com.kms.katalon.core.webui.exception.WebElementNotFoundException: Web element with id ... not found.
There are two possible causes:
This can be caused by incorrect XPath locators.
- Open your page using Chrome.
- Right-click on your desired test object and select Inspect.
- In the Elements tab of DevTool, right-click on your target object and select Copy > Copy XPath.
- Open your test object in Katalon Studio and update your XPath property with the copied value.Alternatively, You can also try optimizing your test object properties by referring to this document here: Optimize object identification and tools.
The exception can also be caused by outdated WebDriver.