UFT Developer for Selenium SDK (Java) Reference

UFT Developer 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 UFT Developer 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 UFT Developer for Selenium, see UFT Developer for Selenium.

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

Package com.hpe.leanft.selenium

Class Summary

ClassDescription
By
Contains all UFT Developer 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 (for example, attributes, tags, or styles).
ByEach
A locator that locates elements according to one or more locators (for example, attributes, tags, or styles).
Utils
UFT Developer for Selenium utilities.

Enum Summary

EnumDescription
By.FLAGSRegular expression flags.