Locating elements by multiple classes - CSS selector

Published: 06 April 2018
on channel: Skptricks
120
0

Link : https://www.skptricks.com/2018/04/css...


CSS Selector is the combination of an element selector and a selector value which identifies the web element within a web page. The composite of element selector and selector value is known as Selector Pattern. Selector Pattern is constructed using HTML tags, attributes and their values. The central theme behind the procedure to create CSS Selector and Xpath are very much similar underlying the only difference in their construction protocol.


In this post we are going to discuss how to use css selector in selenium WebDriver java. Most of the automation testers believe that using CSS selectors makes the execution of script faster compared to XPath locator. CSS Selector locator is always the best way to locate elements on the page. CSS is always same irrespective of browsers.

In this example we are going to locate "button" field of user registration page by its Class using CSS Selector.

Link : https://www.skptricks.com/2018/04/css...


On this page of the site you can watch the video online Locating elements by multiple classes - CSS selector with a duration of hours minute second in good quality, which was uploaded by the user Skptricks 06 April 2018, share the link with friends and acquaintances, this video has already been watched 120 times on youtube and it was liked by 0 viewers. Enjoy your viewing!