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

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.

主站蜘蛛池模板: 民丰县| 独山县| 贵德县| 东海县| 阿拉尔市| 永胜县| 林州市| 渝中区| 罗田县| 安溪县| 刚察县| 泰州市| 利川市| 葵青区| 建瓯市| 九龙县| 木兰县| 屏南县| 白水县| 巴林右旗| 清新县| 乌恰县| 清涧县| 南投县| 长阳| 隆尧县| 衡水市| 洪洞县| 潞城市| 横山县| 东安县| 徐汇区| 阿拉善盟| 兰西县| 临漳县| 陕西省| 揭西县| 泸水县| 璧山县| 杭州市| 彰化县|