AddLocator

English version ›› HatFramework ›› Class: Tester ›› Locators ››
Parent Previous Next

AddLocator

Description: the method creates a locator and adds it to the shared locator storage.

Syntax: AddLocator(string name, string type, string value, string description)

Return value: no return value


Example:

tester.AddLocator("inputLogin", Tester.BY_XPATH, "//input[@id='login']", "This is the login field");

Created with the Personal Edition of HelpNDoc: Benefits of a Help Authoring Tool