Open topic with navigation

# LeanFT for Selenium SDK (Java) Reference

LeanFT for Selenium is a solution that extends the Selenium API, increasing productivity and enabling you to create Selenium tests that are more robust and more maintainable.

This reference describes the classes provided by the Java com.hpe.leanft.selenium package and provides LeanFT for Selenium Java code samples.

Use this SDK to create more robust or generic identifications for your objects, and use built-in utilities rather than writing them yourself from scratch.

For details about working with LeanFT for Selenium, see LeanFT for Selenium.

This SDK includes one package: com.hpe.leanft.selenium

## Package com.hpe.leanft.selenium

Class Summary

Class | Description
--- | ---
By | Contains all LeanFT for Selenium By methods for locating elements.
By.ByAttributes | A locator that locates elements by the provided attributes (strings or regular expressions).
By.ByRegClassName | A locator that locates elements by the provided regular expression class name parameter.
By.ByRegId | A locator that locates elements by the provided regular expression ID parameter.
By.ByRegLinkText | A locator that locates elements by the provided regular expression link text parameter.
By.ByRegName | A locator that locates elements by the provided regular expression name parameter.
By.ByRegRole | A locator that locates elements by the provided regular expression role parameter.
By.ByRegTagName | A locator that locates elements by the provided regular expression tag name parameter.
By.ByRegText | A locator that locates elements by the provided regular expression visible text parameter.
By.ByRegType | A locator that locates elements by the provided regular expression type parameter.
By.ByStyles | A locator that locates elements by the provided styles (string or regular expressions).
By.ByText | A locator that locates elements by the provided visible text.
By.ByVisible | A locator that locates elements that are either visible or not, depending on the parameter passed.
ByAny | A locator that locates elements according to any of the given locators (attributes, tags, styles etc.).
ByEach | A locator that locates elements according to one or more locators (attributes, tags, styles etc.).
Utils | LeanFT for Selenium utilities.

Enum Summary

Enum | Description
--- | ---
By.FLAGS | Regular expression flags.