XPath text() Method | Find element by Text function in selenium webdriver

Published: 04 October 2020
on channel: AllSoftwareProgramming
203
3

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’]


On this page of the site you can watch the video online XPath text() Method | Find element by Text function in selenium webdriver with a duration of hours minute second in good quality, which was uploaded by the user AllSoftwareProgramming 04 October 2020, share the link with friends and acquaintances, this video has already been watched 203 times on youtube and it was liked by 3 viewers. Enjoy your viewing!