in reply to Re^4: Error Handling in Selenium
in thread Error Handling in Selenium
You don't tell us what module you are using, and you don't show a short self-contained program that allows us to easily replicate your situation. Doing so would help us help you better, as we then could provide information that applies to your program.
Note that Selenium::Remote::Driver has an ->error_handler method which you can use to provide your error handling. Using this will prevent errors being fatal. Maybe you have already installed such a handler and it eats your errors. I can't tell because you have not shown the relevant code.
As ->find_element is documentented to still croak, maybe you are looking at the completely wrong part of your code and the problem comes from elsewhere though. Again, it's hard to tell because you did not show the relevant code in a way that allows us to reproduce your problem.
|
|---|