About Lesson
Inspecting Web Elements
Launch Web Developer Tools
Click on the Inspect button. Hover the mouse on the web element on the web page.
This will highlight the element code in the tool window.
Examine the element HTML code to decide the location technique.
Â
In the above screenshot, the ‘Google Search’ button is inspected. You can see the highlighted HTML code for the web element. You can use the name=”btnK”
You can use the (By.NAME, “btnK”)
Â
Â