TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

Selenium

Inspect elements in Chrome with Developer Tools

Overview

In this tutorial, we will learn to inspect elements in Google Chrome browser with Developer Tools. Developer tools are in-built in the browser.

To interact with the web elements with automation we need to identify them properly. Good location strategy is key to effective test design.  We can use these tools suite to inspect, debug HTML, CSS and JavaScript.

Steps

Launch Google Chrome Browser.

Click on the three dots menu icon in the top right corner.

Choose the menu option More Tools >> Developer Tools.

 

Developer Tools Google Chrome Browser

The keyboard short cut is Ctrl + Shift + I

Inspect Elements

  • Open the web page under test in Google Chrome browser.
  • Launch the tools from the menu.
  • Choose the Inspector arrow icon.
  • Select the element to inspect and examine the element.

Example

In the example, we will inspect the Login name text box element in TestLink Login page.

Click the Inspect arrow element. Choose the Login name text box.

Check the Properties tab for the element to inspect the element.

We can see that the id of the Login Name text box web element is : tl_login

 

Inspect Elements Google Chrome Browser

 

We can use these tools for inspecting elements during page object design or when creating automation scripts.

—

Selenium Tutorials on this website:

https://www.testingdocs.com/selenium-webdriver-tutorial/

Official Website:

https://www.selenium.dev/

Related Posts

Windows 10 Settings

Selenium /

Add Microsoft Webdriver on Windows OS

Download Selenium Components

Selenium /

Getting Started with Selenium Webdriver

LambdaTest Testing Cloud SaaS Platform

Selenium /

LambdaTest – Testing Cloud SaaS Platform

Selenium /

Selenium 3.0 and Mozilla GeckoDriver

SauceLabs Website

Selenium /

Run an Example Test on SauceLabs

‹ Find elements By XPath in Selenium› Download Mozilla GeckoDriver on Ubuntu

Recent Posts

  • MS Access Data Types
  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • Build & Run CLion Project
  • Create New CLion C Project on Windows
  • Configure CLion Toolchains on Windows
  • Launch CLion IDE on Windows
  • Activate CLion IDE
  • CLion IDE for C/C++ Development

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com

Go to mobile version