- Selenium WebDriver 3 Practical Guide
- Unmesh Gundecha Satya Avasarala
- 196字
- 2021-08-13 16:08:06
Inspecting pages and elements with Mozilla Firefox
The newer versions of Mozilla Firefox provide built-in ways to inspect the page and elements. To inspect an element from the page, move the mouse over the desired element and right-click to open the pop-up menu. Select the Inspect Element option, as shown in the following screenshot:

This will display the Inspector tab with the HTML code in a tree format with the selected element highlighted, as shown in the following screenshot:

Using Inspector, we can also validate the XPath or CSS Selectors using the search box shown in the Inspector section. Just enter the XPath or CSS Selector and Inspector will highlight the elements that match the expression, as shown in the following screenshot:

The Developer tools provide various other debugging features. It also generates XPath and CSS selectors for elements. For this, select the desired element in the tree, right-click, and select the Copy > XPath or Copy > CSS Path option from the pop-up menu, as shown in the following screenshot:

This will paste the suggested XPath or CSS selector value to the clipboard to be used later with the findElement() method.
- 計(jì)算機(jī)網(wǎng)絡(luò)與通信(第2版)
- 解析QUIC/HTTP3:未來互聯(lián)網(wǎng)的基石
- 物聯(lián)網(wǎng)網(wǎng)絡(luò)安全及應(yīng)用
- TCP/IP入門經(jīng)典(第5版)
- WordPress 5 Complete
- 端到端QoS網(wǎng)絡(luò)設(shè)計(jì)
- 無線傳感器網(wǎng)絡(luò)定位技術(shù)
- 大型企業(yè)微服務(wù)架構(gòu)實(shí)踐與運(yùn)營
- AWS Lambda Quick Start Guide
- Dart Cookbook
- 園區(qū)網(wǎng)絡(luò)架構(gòu)與技術(shù)
- 現(xiàn)場(chǎng)綜合化網(wǎng)絡(luò)運(yùn)營與維護(hù):運(yùn)營商數(shù)字化轉(zhuǎn)型技術(shù)與實(shí)踐
- 世界互聯(lián)網(wǎng)發(fā)展報(bào)告2021
- 數(shù)字王國里的虛擬人:技術(shù)、商業(yè)與法律解讀
- 新媒體交互藝術(shù)