Hi, I’m using the Katalon Recorder extension from the Chrome Web Store and do recording and then export to generates selenium scripts. Our environment only supports Python 3.8 and above. What version of Katalon recorder extension is compatible with Python 3.9/Selenium 4?
Hi there, and thanks for posting in the Katalon community!
Working with recording, we encourage you trying Katalon Web Recorder Plus: Katalon Web Recorder Plus | Katalon Docs. Double-checking the steps and configurations might resolve the issue.
If the doc doesn’t help, feel free to provide more details, and a community member will assist you soon. Thanks for being a part of our community!
# Selenium 4 syntax (correct)
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
driver = webdriver.Chrome()
driver.find_element(By.CSS_SELECTOR, "#elementId")
from selenium.webdriver.chrome.service import Service
service = Service(executable_path="path/to/chromedriver")
driver = webdriver.Chrome(service=service)
Sample Exported Script (Selenium 4/Python 3.9)
python
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.service import Service
service = Service()
driver = webdriver.Chrome(service=service)
driver.get("https://your-app.com")
driver.find_element(By.ID, "username").send_keys("user@example.com")
driver.find_element(By.CSS_SELECTOR, "button.login").click()
Thank you for your response.
However, I am unable to find Export Python/Selenium 4 Code.
Please see my attachment for a screenshot of those language it supports. I only see Python2(Webdriver +unittest). How can I export to Python/Selenium 4 code?
I redirected your question to ChatGPT. ChatGPT replied as follows:
You can export Selenium 4-compatible Python scripts starting with Katalon Recorder version 5.9.0 (née 5.9.0+). That version introduced official support for both importing and exporting Selenium 4 test scripts—including Python—so it’s fully compatible with Python 3.9+ environments reddit.com+15docs.katalon.com+15katalon-studio-8-x–docs-production-katalon.netlify.app+15.
What you need to do:
Update your Chrome extension to at least Katalon Recorder v5.9.0.
Ensure your target environment has Python 3.8 or 3.9+ installed, along with the matching Selenium 4 version.
When exporting, select the “Python (unittest)” or appropriate Python formatter and choose Selenium 4.
If you’re already on v5.9.0+ and still seeing issues:
The official Katalon Community suggests trying Katalon Web Recorder Plus—a related tool that may offer more reliable Python exports forum.katalon.com. It’s worth testing it out, as some users reported better compatibility and cleaner generated code.
Summary
Goal
Minimum Required Version
Selenium 4 + Python export
Katalon Recorder v5.9.0
Works with Python 3.9+
So yes — for Python 3.9 / Selenium 4 support, just upgrade to KR v5.9.0 or later. And if that doesn’t resolve your problem, give Web Recorder Plus a try—it might be the more stable option for your setup.
Let me know if you run into any specific errors during export or execution—I’d be happy to help debug further!
ChatGPT answers are not always correct, so be sure to check important information.
ChatGPT replied:
You can export Selenium 4-compatible Python scripts starting with Katalon Recorder version 5.9.0 (née 5.9.0+). That version introduced official support for both importing and exporting Selenium 4 test scripts—including Python—so it’s fully compatible with Python 3.9+ environments
ChatGPT suggested the following URL to a Katalon’s official documentation:
In the doc, I found the following sentence:
This file is compatible with many other frameworks, such as … Python. From version 5.9.0 onwards, you can export your project to Selenium 4.
This sentence reveals that Katalon does not care about the version of Python language: v2.x or v3.x.
I think that Katalon should write in the docs that Katalon Recorder supports only Python v2.x only; it does not provide a menu generating code in python v3.x. If explained explicitly in the doc, ChatGPT will learn the text in future.
Why not you try the latest version of Katalon Recorder with the menu “Python 2 (WebDriver + unittest)”. You can try to run the generated test with your python3 runtime. Just try and see if it works.
The generated code may work with Python3.9. Or may not. Even if it does not work, I suppose that you are capable of correcting any mistakes in the generated code and make it runnable on Python 3.9.
The official Katalon Community suggests trying Katalon Web Recorder Plus —a related tool that may offer more reliable Python exports forum.katalon.com.
This information is another hallucination. Katalon Web Recorder Plus is a beta-feature built-in the Katalon Studio product. It generates code in Groovy only; it does not generate code in Python at all.
The announcements from Katalon does NOT explicitly say
“Katalon Recorder Plus generates test codes in Groovy; we do not support other languages such as Python and JavaScript”.
I think that Katalon should write so. Then, ChatGPT could learn the correct information.
Once given with correct information, ChatGPT would be able to make correct answers without hallucinations.
As long as Katalon’s documentation is inadequate, I am sure that ChatGPT will continue to give us incorrect answers.