ClickElementAsync

Parent Previous Next

ClickElementAsync

Description: the method performs a click on the element

Syntax

ClickElementAsync(string by, string locator)

ClickElementAsync(Locator locator)

Return value: no return value


Example:

await tester.ClickElementAsync(Tester.BY_CSS, "#auth #buttonLogin");

await tester.ClickElementAsync(Tester.BY_XPATH, "//div[@id='auth']//input[@id='buttonLogin']");


await tester.ClickElementAsync(tester.GetLocator("locatorName"));

Created with the Personal Edition of HelpNDoc: Full-featured Help generator