- Selenium WebDriver Quick Start Guide
- Pinakin Chaubal
- 101字
- 2021-06-24 18:26:29
DOM traversal
Now that we have seen the basic definitions of XPaths and CSS and also looked at what WebElements are, let's understand how we can use these to exploit the DOM. DOM traversal entails getting to the desired element with the help of either XPaths or CSS. It is possible to traverse the DOM in a forward and backward direction with XPaths but traversal through XPaths is slow compared to CSS. Traversal using CSS can only be done in the forward direction. In order to traverse the DOM, using either XPaths or CSS, we need to understand the By class.
推薦閱讀
- Linux系統文件安全實戰全攻略
- Windows Server 2012 Hyper-V:Deploying the Hyper-V Enterprise Server Virtualization Platform
- 發布!設計與部署穩定的分布式系統(第2版)
- Ubuntu Linux操作系統
- Linux運維最佳實踐
- Joomla! 3 Template Essentials
- 完美應用RHEL 8
- Fedora 12 Linux應用基礎
- NetDevOps入門與實踐
- 寫給架構師的Linux實踐:設計并實現基于Linux的IT解決方案
- Windows 7實戰從入門到精通
- Linux網絡操作系統項目教程(RHEL 7.4/CentOS 7.4)(第3版)(微課版)
- Agile IT Security Implementation Methodology
- openEuler操作系統核心技術與行業應用實踐
- 完美應用Ubuntu(第4版)