SetValueInElementAsync

Parent Previous Next

SetValueInElementAsync

Description: the method inserts value into the specified element 

Syntax: SetValueInElementAsync(string by, string locator, string value)

Return value: no return value


Example:

await tester.SetValueInElementAsync(Tester.BY_CSS, "input[id='login']", "admin");

await tester.SetValueInElementAsync(Tester.BY_CSS, "input[id='pass']", "0000");


await tester.SetValueInElementAsync(Tester.BY_XPATH, "//input[@id='login']", "admin");

await tester.SetValueInElementAsync(Tester.BY_XPATH, "//input[@id='pass']", "0000");

Created with the Personal Edition of HelpNDoc: iPhone web sites made easy