In this videos, I have explained the XPath by text() function in Selenium WebDriver.
Refer to the below points:
If the Attribute is matching with more than one element or if the attribute is not present then we can identify the element using its text. It has the following
syntax: //tagname[text()=’textValue’]
syntax: //tagname[.=’textValue’]
Examples: //div[text()=’Login ‘]
//div[text()=’Users’]
//td[text()=’Java’]
//div[@class=’label’][text()=’Users’]
Nesta página do site você pode assistir ao vídeo on-line XPath text() Method | Find element by Text function in selenium webdriver duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário AllSoftwareProgramming 04 Outubro 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 203 vezes e gostou 3 espectadores. Boa visualização!