How to debug Python code in SeleniumCodeChecker.

2021-01-25

You can execute any Python code in CodeChecker without restarting Selenium.

The code will be evaluates an expression if you enter input one line. It will be return the value.

The code will be evaluates a statement if you enter input multi lines. It will display the contents of standard output.

For examples

Evaluate an expression

execute_expression

Evaluate statement

execute_statement

You can edit function and run it.

execute_function

You can enter control flow statements.

execute_function_loop

An exception occurred

The following code need to be enclosed with double quotation marks.

expression_except1

Even if an error occurs, CodeChecker and Selenium will not stop. Error message is displayed in CodeChecker window.
You can continue to operate without restarting.

expression_except2

import library

CodeChecker is compiled with Python 3.7.4 that includes Python standard library. Therefore you can import the standard library without anything.

import

You can import other libraries by appending library path.

sys_path_append

Now you got a powerful support tool for Selenium debugging in Python.
Using Codechecker, you can try to execute any code many times while you debug Selenium WebDriver script.

Free Trial Version

2021-01-25CodeCheckerDebug,Python,Selenium

Posted by sj