- 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.
推薦閱讀
- Hands-On DevOps with Vagrant
- 白話區(qū)塊鏈
- Linux操作系統(tǒng)應用編程
- 嵌入式Linux應用開發(fā)菜鳥進階
- Java EE 8 Design Patterns and Best Practices
- Windows 7中文版從入門到精通(修訂版)
- Social Data Visualization with HTML5 and JavaScript
- 新編電腦辦公(Windows 10+ Office 2013版)從入門到精通
- Troubleshooting Docker
- Linux軟件管理平臺設計與實現(xiàn)
- Learn SwiftUI
- Office 365 User Guide
- Zabbix監(jiān)控系統(tǒng)之深度解析和實踐
- VMware Horizon Mirage Essentials
- OpenHarmony開發(fā)與實踐:基于紅莓RK2206開發(fā)板