- Selenium WebDriver 3 Practical Guide
- Unmesh Gundecha Satya Avasarala
- 281字
- 2021-08-13 16:08:07
Inspecting pages and elements in Google Chrome with Developer Tools
Similar to Mozilla Firefox, Google Chrome also provides a built-in feature to inspect pages and elements. We can move the mouse over a desired element on the page, right-click to open the pop-up menu, and then select the Inspect element option. This will open Developer tools in the browser, which displays information similar to that of Firefox, as shown in the following screenshot:

Similar to Firefox, we can also test XPath and CSS Selectors in Google Chrome Developer tools. Press Ctrl + F (on Mac, use Command + F) in the Elements tab. This will display a search box. Just enter XPath or CSS Selector, and matching elements will be highlighted in the tree, as shown in the following screenshot:

Chrome Developer Tools also provides a feature where you can get the XPath for an element by right-clicking on the desired element in the tree and selecting the Copy XPath option from the pop-up menu.
Browser developer tools come in really handy during the test-script development. These tools will help you to find the locator details for the elements with which you need to interact as part of the test. These tools parse the code for a page and display the information in a hierarchal tree.
- FreeSWITCH 1.2
- 網絡協議工程
- 物聯網短距離無線通信技術應用與開發
- 物聯網之魂:物聯網協議與物聯網操作系統
- Django 2 by Example
- 網絡創新指數研究
- 計算機網絡與數據通信
- SSL VPN : Understanding, evaluating and planning secure, web/based remote access
- 物聯網通信技術
- 物聯網之霧:基于霧計算的智能硬件快速反應與安全控制
- The Kubernetes Workshop
- AIoT應用開發與實踐
- Hands-On Docker for Microservices with Python
- 通信系統實戰筆記:無處不在的信號處理
- 網絡空間作戰:機理與籌劃