IsClickableAsync

Parent Previous Next

IsClickableAsync

Description: the method determines the clickability of the element and returns true or false

Syntax: IsClickableAsync()

Return value: bool (true or false)


Example:

Tester tester = new Tester(browserForm);

await tester.TestBeginAsync();

await tester.GoToUrlAsync("https://somovstudio.github.io/test2.html", 5);

HTMLElement element = await tester.GetElementAsync(Tester.BY_XPATH, "//button");

bool clickable = await element.IsClickableAsync();

await tester.AssertTrueAsync(clickable);

await tester.TestEndAsync();

Created with the Personal Edition of HelpNDoc: Free EPub producer