filmov
tv
Selenium WebDriver | Locators | locate web element based on name, classname and id
Показать описание
Locators in selenium are used to locate web elements on the web page
There are 8 kinds of locators in selenium those are
className
name
id
cssSelector
tagName
linkText
partialLinkText
xpath
again XPath are two types partial and complete XPath
on web- page we used to perform mostly following actions like
click action on a link, radio button, and checkbox whereas we perform input action on the textbox and select value actions against dropdown to perform these actions locators are plays a vital role in selenium
always locate unique web elements on the web-page .
There are 8 kinds of locators in selenium those are
className
name
id
cssSelector
tagName
linkText
partialLinkText
xpath
again XPath are two types partial and complete XPath
on web- page we used to perform mostly following actions like
click action on a link, radio button, and checkbox whereas we perform input action on the textbox and select value actions against dropdown to perform these actions locators are plays a vital role in selenium
always locate unique web elements on the web-page .