Locators in Selenium Webdriver

Описание к видео Locators in Selenium Webdriver

Selenium - Locators in Selenium Webdriver
1. What are the Locators?
Locators are the command that tell selenium which GUI elements need to operate i.e TextBox, Buttons, Checkbox etc

2. What types of locators in Selenium Web Drivers?
ID, Name, ClassName, TagName, LinkText, Partial LinkText, CSS Selectors and Xpath

3. How to write locators in Selenium Web Driver script?
findElement(By.id("IdName"))
findElement(By.className("ClassName"))
findElement(By.tagName("HTML Tag Name"))
findElement(By.linkText("LinkText"))
findElement(By.partialLinkText("partialLinkText"))
findElement(By.xpath("XPath"))
findElement(By.cssSelector(tag#id) or(tag.class) or tag[attribute=value]) or (tag.class[attribute=value]))


Please feel free to mail me at [email protected] for any query related issues or if you want another video on a same topic than please comments, I will create it for you.

You can Follow me on My Social Network

YouTube:    / @mittalrahul18  
FaceBook:   / rtechinsider  
Twitter:   / rtechinsider  
Blogs: https://www.blogger.com/blog/posts/77...
LinkedIn:   / r-tech-insider  
Instagram:   / imrahul87  
Telegram: https://web.telegram.org/#/im?p=@Rahu...
GitHub: https://github.com/RahulMittal1987

Комментарии

Информация по комментариям в разработке