Course Content
Selenium Python First Script
Selenium Python First Script
0/2
HTML Form elements
HTML Form elements
0/1
Handle HTML Frames
Handle HTML Frames
0/2
Handling Dropdown Lists
Handling Dropdown Lists
0/2
Selenium Action class
Selenium Action class
0/1
Selenium Python for Beginners [ 2024 ]
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.

Inspect Web Elements Google HomePage

 

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”)

 

 

Join the conversation