Byte_ Selenium Locators exercises
Byte_ Selenium Locators exercises
copy")
ew" (Use the "Share" button on the top-
Preferred
URL Control to find Locator 1
amazon.in Search Box Id
https://www.redbus.in/ Logo onButton
Sign In the toponLeft
top Class Name
https://paytm.com/ right CSS
https://www.python.org/ Downloads dropdown
Sign In Button on top Link Text
https://www.netflix.com/in/
right Class Name
Preferred
Value of Locator 1 Locator 2 Value of Locator 2
twotabsearchtextbox Name field-keywords
.home-redirect
div[id='app'] header div div div div div Link Text redbus
//*[@id="app"]/header/div/div/div/div/
span Xpath div/span
Downloads Xpath //*[@id="downloads"]/a
redButton Link Text Sign In
Why did
Static you ID
Unique choose this locator?
was available,
Name of this
The Link Textelement was exclusive
is available unique in to
the<a>
DOMand
unique
generated entity
We canelement
parent use CSS or less
and Xpath
susceptible to changes in
this case
The Link Text is available exclusive to <a> and
unique