NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

I see a Python Interpreter crash error on running a sequence with several Python method calls. Error Message:Error in 'ModuleDir'.

Error Message:Error in 'ModuleDir'.  Python interpreter session crashed. If a console is displayed, closing the console will crash the interpreter. Complete all the executions, unload all modules and retry executing the sequence file.[Error Code: -17311]

 

PavithraBoggarm_0-1724043481577.png

 

 

0 Kudos
Message 1 of 3
(381 Views)

Any help on fixing this would be greatly appreciated. Thank you

0 Kudos
Message 2 of 3
(347 Views)

These Python calls are for methods with Selenium automation and the parameter I am passing across these various calls is the python webdriver element which returned from my previous calls. Here I see the first 2 calls are successful and from the 3rd method call onwards there is Python interpreter crash. My selenium version is 4.22 and Python version is 3.10. I have tried it with both test stand 2020 and 2021. Also tested with Chrome browser and Edge browser. Other python method calls which does not include Selenium works absolutely fine. Any help on this will be highly appreciated. Data type used for webdriver element in test stand is "Object reference"

0 Kudos
Message 3 of 3
(314 Views)