官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 江西省| 保德县| 五河县| 安乡县| 扬州市| 庆城县| 滦平县| 资兴市| 炉霍县| 龙里县| 花莲县| 施甸县| 陕西省| 大厂| 雷州市| 双城市| 措勤县| 绩溪县| 鄄城县| 乌拉特前旗| 安阳市| 抚顺县| 东阳市| 昌吉市| 宜兴市| 天津市| 德清县| 嘉禾县| 贵定县| 类乌齐县| 北安市| 扎鲁特旗| 江永县| 象州县| 富平县| 谷城县| 太康县| 大足县| 西平县| 静海县| 清镇市|