So I wanted a way so that the script stops executionThen eval does more or less the opposite of what you want. Instead of
you could tryeval{$elem = $driver->find_element(".//*[\@id='nav']/li[3]/a");}
However, that's just a guess, and the use of "fatal warnings" is controverse.{ use warnings FATAL => 'all' $elem = $driver->find_element(".//*[\@id='nav']/li[3]/a"); }
In reply to Re^5: Error Handling in Selenium
by soonix
in thread Error Handling in Selenium
by 9mohit2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |