in reply to Re^5: Error Handling in Selenium
in thread Error Handling in Selenium
Hi 9mohit2,
In all your other posts you wrote that you were using find_element, which is documented to croak, but if you read further, the documentation says find_element_by_xpath does not croak. So you'll have to do the error handling yourself - I think $driver->find_element_by_xpath("abc") or die "Failed to find_element_by_xpath"; should cause your script to die (untested). Next time please read the documentation in more detail and post a code sample right away; up until now this thread was a wild goose chase.
Regards,
-- Hauke D
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Error Handling in Selenium
by 9mohit2 (Sexton) on Nov 22, 2016 at 06:59 UTC | |
by Anonymous Monk on Nov 22, 2016 at 07:55 UTC |