FindElementAsync
Description: the method searches for an element in the DOM with a wait in seconds and returns a logical result true or false
Syntax: FindElementAsync(string by, string locator, int sec)
Return value: bool (true or false)
Example:
FRAMEElement frame = await tester.GetFrameAsync(0);
bool result = await frame.FindElementAsync(Tester.BY_CSS, "div[id='result']", 2);
bool result = await frame.FindElementAsync(Tester.BY_XPATH, "//div[@id='result']", 2);
Created with the Personal Edition of HelpNDoc: Generate Kindle eBooks with ease