Back to Browse

75. Class Name Locator or XPath Expression - Real time situation (Selenium Java 2026)

37 views
May 12, 2026
11:20

Class Name Locator or XPath Expression? When there is only one word assigned as a value to the class attribute in the HTML code of an element, you can use a class name locator to locate that element. However, if the class attribute contains multiple words (multiple class names), it is better to use an XPath expression to locate such elements. In this session, I’ve explained this concept with practical demonstrations.

Download

1 formats

Video Formats

360pmp49.1 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

75. Class Name Locator or XPath Expression - Real time situation (Selenium Java 2026) | NatokHD