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

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.

主站蜘蛛池模板: 彩票| 莱阳市| 高安市| 汝阳县| 遂昌县| 韶关市| 静乐县| 大邑县| 黔东| 华安县| 东阿县| 都昌县| 拉孜县| 屏东市| 武义县| 鹰潭市| 白玉县| 察隅县| 辽源市| 肥西县| 鹤庆县| 昭苏县| 深泽县| 澜沧| 南皮县| 墨玉县| 葵青区| 阿合奇县| 定州市| 攀枝花市| 温宿县| 廉江市| 巴林右旗| 黔东| 河源市| 恩平市| 耿马| 海丰县| 七台河市| 沙雅县| 平原县|