Selenium Class 22: XPath Axes | Preceding, Preceding-sibling
Автор: Testing Tutorialspoint
Загружено: 2021-12-16
Просмотров: 188
Описание:
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
Повторяем попытку...

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