Hi Hauke,
Firstly, the die workaround you suggested will not work as I have already tested it. Secondly, even if you change the find_element_by_xpath to find_element it is still not stopping the script execution nor throwing any error.Please suggest any method by which I can call a mail notification sub if any element is not found. Since I am using xpath I can use both find_element_by_xpath as well as find_element.
Thanks for the help.
In reply to Re^7: Error Handling in Selenium
by 9mohit2
in thread Error Handling in Selenium
by 9mohit2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |