filmov
tv
Find Elements On Web Page With ID Name And ClassName Locators | Locators In Selenium

Показать описание
Hello and welcome again to day 8 on teaching yourself selenium webdriver with java
Find elements on web page with id, classname and name locators
All your locator strategies are id, name, classname, link text, css selector and xpath
So we are using eclipse as our ide to write our selenium test cases and the test scripts have started to pile up which is great because it means plenty of practice writing code, which is the best way to learn
What are locators? locators are items selenium uses to identify and interact with elements or objects on any web page
On day 8 we are looking into how we will use id. name and classname to locates and interact with the facebook web page
We attempt to identify the email text box using any of our locators in selenium above and send in some text into this field. Next to the password field and we will do the same identify the text field and send password into the filed
Finally we find the log in button and click onto it and hopefully when we run our test script all goes well
In this video we managed to see how to use id and classname to do the above steps we forgot or should i say i forgot to show how i use name as a locator in selenium to interact with objects on the facebook page
Locators in selenium are key to automating your test cases as these are the strategies which are core around the interacting with web-pages. So when you have this mastered you are more
than half way done with your selenium knowledge
Find Elements On Web Page With ID Name And ClassName Locators | Locators In Selenium
--------------------------------------------------------------------------------------------------------
#testautomation #teachyourselftestautomation #selenium #webdriver #java
--------------------------------------------------------------------------------------------------------
Follow me @
--------------------------------------------------------------------------------------------------------
My Videos:
-------------------------------------------------------------------------------------------------------