Why is eval block not working in the code below :
eval{$elem = $driver->find_element(".//*[\@id='nav']/li[3]/a");} if($@){ print "Erro Occured"; }
I am not getting any ways to throw immediate error if an element is not found.
In reply to Re^2: Error Handling in Selenium
by 9mohit2
in thread Error Handling in Selenium
by 9mohit2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |