Explanation to create test code with Selenium using selenium katalon recorder
What is selenium katalon recorder?
A type of thing called Selenium IDE Selenium IDE is a capture and replay tool provided as a browser extension It has a function to record (capture) the operation on the browser and play (replay) the same operation.
The selenium katalon recorder is provided as a Google Chrome plugin and is ready to install and run Because it was, it was used as an auxiliary tool
https://chrome.google.com/webstore/detail/katalon-recorder-selenium/ljdobmomdgdljniojadhoplhkpialdid
You are told to create an account, but you don't have to
Now, the operation contents of the browser are recorded.
python2 webdriver +unittest
You can manage the python version and execution environment by yourself.
Now you have a template for your test code. Wow
** Install the driver to run Chrome **
Chrome version https://chromedriver.chromium.org/downloads ↑ Specify the same version as Chrome you are using from here
You will get an error if you do not match the version of the browser you are using https://teratail.com/questions/117444
** Pass through **
#Operate Chrome
driver = webdriver.Chrome(executable_path="D:\webDriver\chromedriver")
#Operate Firefox
driver = webdriver.Firefox(executable_path="D:\webDriver\geckodriver")
Detailed path settings are as follows https://qiita.com/motoki1990/items/a59a09c5966ce52128be
In Firefox, capabilities [“marionette”] = True cannot be recognized and an error occurs and the solution https://web.plus-idea.net/2017/06/selenium3-firefox-python-auto/
https://qiita.com/aical/items/2d066801a7464a676994
https://qiita.com/tom-u/items/134e2b8d4e11feea8e12
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py --user
sudo pip install selenium
Recommended Posts