Selenium Class 22: XPath Axes | Preceding, Preceding-sibling
Автор: Testing Tutorialspoint
Загружено: 17 дек. 2021 г.
Просмотров: 186 просмотров
XPath Axes preceding, preceding-sibling:
----------------------------------------
preceding:
It selects all nodes that appear before the current node.
you can have all the elements before your current node, and by using Index or another chained XPath, you can locate the actual web element.
syntax:
//tagname[@attribute=’value’]//preceding::tagname
url: http://demo.guru99.com/V1/index.php
//*[@type='submit']//preceding::input
preceding-sibling:
it selects all the nodes that have the same parent as current node and appear before the current node.
syntax:
//tagname[@attribute=’value’]//preceding-sibling::tagname
//*[@type='reset']//preceding-sibling::input

Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: