GetTextFromElementAsync

Parent Previous Next

GetTextFromElementAsync

Description: the method returns the text from the specified element

Syntax: GetTextFromElementAsync(string by, string locator)

Return value: string


Example:

FRAMEElement frame = await tester.GetFrameAsync(0);

string text = await frame.GetTextFromElementAsync(Tester.BY_CSS, "#auth > h2");


string text = await frame.GetTextFromElementAsync(Tester.BY_XPATH, "//div[@id='auth']//h2");

Created with the Personal Edition of HelpNDoc: Create HTML Help, DOC, PDF and print manuals from 1 single source