Skip to main content

py_err_se_err

No overview available.

def py_err_se_err(
err: Exception
) - > dict

Converts a Python exception into a Selenium-specific error format. This function is used to ensure that internal Python errors are mapped to the appropriate WebDriver error codes and messages for consistent API responses.

Parameters

NameTypeDescription
errExceptionThe Python exception instance to be translated into a Selenium error structure.

Returns

TypeDescription
dictA dictionary containing the standardized Selenium error code and the associated error message.