Create a test with the auxiliary tool [selenium katalon recorder], which is convenient when using selenium.

[Selenium katalon recorder] automatically generates test code by selenium

Explanation to create test code with Selenium using selenium katalon recorder

What is 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

Chrome plug-in download destination

https://chrome.google.com/webstore/detail/katalon-recorder-selenium/ljdobmomdgdljniojadhoplhkpialdid

You are told to create an account, but you don't have to

selenium katalon recorder How to use

Now, the operation contents of the browser are recorded.

Export to code

python2 webdriver +unittest

You can manage the python version and execution environment by yourself.

Now you have a template for your test code. Wow

Browser and path settings to run selenium

** 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/

Bonus MAC environment construction

Notes from installing Homebrew to building an Anaconda environment for Python with pyenv

https://qiita.com/aical/items/2d066801a7464a676994

installation of mac python2 series pip

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

Create a test with the auxiliary tool [selenium katalon recorder], which is convenient when using selenium.
Create a translation tool with the Translate Toolkit
Prepare a distributed load test environment with the Python load test tool Locust
A story when a directory is buggy with the django-admin start project command in a virtual environment using Pipenv
Create a tool to automatically furigana with html using Mecab from Python3
Create a record with attachments in KINTONE using the Python requests module
Create a graph using the Sympy module
How to deal with SessionNotCreatedException when using Selenium
Create a GUI on the terminal using curses
A story that was convenient when I tried using the python ip address module
Investigate the cause when an error is thrown when python3.8 is not found when using lambda-uploader with python3.8
There is a pattern that the program did not stop when using Python threading
When a local variable with the same name as a global variable is defined in the function