- 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.
推薦閱讀
- 全屋互聯:智能家居系統開發指南
- Kubernetes修煉手冊
- Linux設備驅動開發詳解:基于最新的Linux4.0內核
- Mastering vRealize Operations Manager(Second Edition)
- Implementing Cisco UCS Solutions
- Puppet實戰
- Mobile-first Bootstrap
- BPEL and Java Cookbook
- SOA實踐者說
- 異質結原理與器件
- 混沌工程:復雜系統韌性實現之道
- Windows Server 2019 Administration Fundamentals
- Django Project Blueprints
- Windows 8實戰從入門到精通(超值版)
- Learning Continuous Integration with Jenkins(Second Edition)