Connecting to a Selenium driver in Python Script Step

0
0

Hi everyone,

I saw the helpful post about referencing the Selenium driver in a C# Script Step using:

IWebDriver driver = (IWebDriver)VR[“_selenium_driver_script_reference_driverReferenceEdge”];

 

This works well in C# since you can access “VR” and retrieve the driver instance directly.

However, I’m currently working in a Python Script Step, and I noticed that the VR dictionary (or any similar method) is not available in the same way. The only thing I can pass into the script via the interface is a string ID of the driver (not the driver object itself), and this ID seems to be a reference used internally by the Robotiq platform.

Is there any way in Python Script Step to resolve this driver ID into the actual Selenium WebDriver object, so I can perform additional Selenium operations within the same browser session?

If not directly, is there any workaround you’d recommend?

Thanks in advance!

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.