Skip to main content
18 votes

How to analyse 'Element not Found' exceptions when working with Selenium

1. Trust your code and doubt SUT (Software under test): If everything was working fine and the test starts to fail suddenly. Instead of debugging your code for issues, start with checking the actual ...
PDHide's user avatar
  • 11.1k
8 votes

How to analyse 'Element not Found' exceptions when working with Selenium

PDHide's answer is good in general, but since you specifically ask about verifying selectors, I would like to add that you can test them in a browser console. For CSS selectors, you can test with ...
A. R.'s user avatar
  • 190
4 votes

How to teach test automation engineers to use a debugger

Excellent question. Debugging is a basic skill programmers should have. Many testers lack programming skills because companies throw people with no or only little programming experience into test ...
dzieciou's user avatar
  • 10.5k
3 votes

How to analyse 'Element not Found' exceptions when working with Selenium

First of all, we need to understand the root cause of the exception. As written in the Selenium docs, it's thrown by FindElement/FindElements methods. That might be caused by: Invalid locator. In ...
501NotImplemented's user avatar
2 votes

How to analyse 'Element not Found' exceptions when working with Selenium

In addition to the other answers, for me the most efficient way to take a screenshot when a test fails and attach to the report. (When using cucumber its easily done with the After hook) This way I ...
André Roggeri Campos's user avatar
2 votes

How to teach test automation engineers to use a debugger

Debugging in terms of Lay man's(i.e. manual tester) language is to find the root cause of any issue/bug by following the steps or by observing the screenshot, GIF or video provided. So, in the similar ...
Himanil Gupta's user avatar
1 vote

How to teach test automation engineers to use a debugger

Show the benefits I think the problem is frequently the incentive (I mean personal one not compensation) is not clear. When you make the incentive(s) clear the case makes itself, and the motivation ...
Michael Durrant's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible