How Does Selenium Find Elements?

If you are doing UI test automation, there is a high probability that you are using Selenium. Either directly, or in some framework, or by some tool that is built on Selenium. But did you ever wonder what is going on under the hood? How does Selenium use the browser? How does it find elements? If that sounds interesting to you, this is a presentation for you.

What? Do you want more? Just curiosity is not enough for you? A good understanding of tools is helpful when dealing with edge cases. Paraphrasing Simon Stewart if you are surprised by stale element exception it means you either don’t understand the page you are testing or you don’t understand the tool you are using. I will not help you know your page, but I can help you get a better understanding of the tool. During the presentation, we will look into the performance of different locator types. How to do quick experiments in code. What is going under the hood? What can we find in the standard?

Video producer: