xpath and advanced xpath in selenium webdriver |text()|Normalize space|Preceding | Following-sibling
Автор: Automation warrior
Загружено: 2023-05-07
Просмотров: 129
Описание:
xpath and advanced xpath in selenium webdriver |text()|Normalize space|Preceding | Following-sibling
Your Queries
xpath function in selenium webdriver
advanced xpath in selenium webdriver
text ()
normalize space()
following -sibling
preceding-sibling
xpath() in selenium webdriver
Xpath Function
what is xpath in selenium
what is advanced xpath
xpath and advanced xpath in selenium
1. text()
Syntax : //tagname[text()='visible text']
//*[text()='Next']
2. Normalize space
Syntax //tagname[normalize-space(text())='visible text']
//*[normalize-space(text())='Forgot email?']
//*[normalize-space(text())='Create account']
3. Advanced xpath: it is used to move from parent to child node
a) preceding: preceding is used to move back
//*[@id="username"]/preceding::input[1]
b) following :
//tagname[@attribut='value']/following::[1]
//*[@id='username']/following::input[1]
c) Preceding-sibling[]
//*[@id='month']/preceding-sibling::*
d) Following-sibling[]
//*[@id='month']/following-sibling::*
Повторяем попытку...

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