pythonseleniumautomationkatalon-recorder

Python script that export from katalon recorder can't run and display error


I am new in automation. Currently, I am using katalon recorder to record my web application, Then I want to export it to python2 (webdriver+unittest) to run in my machine...after I run the test script using python, it shows me some errors that unable to locate the element… But when I run in katalon recorder, everything just fine.

May I know what steps did I miss or what should I install or import in order to run the python test script same with the katalon recorder. Is there any library that katalon using to run the testscript?

Thank you.


Solution

  • As discussed here, automatically generated element locators tend to be pretty flaky, so the best course of action is to learn to use XPath (or other selector strategies) to pinpoint the element yourself.