I need to fill several text input fields on a webpage in Google Chrome.
The following code works, but I have to add a 1-second delay; otherwise, the last text fills in the first text box.
In some other commercial RPA software, the steps recorded with the recording function can execute very stably without adding delays.
Most commercial RPA software uses XPath or CSS selectors for element positioning, but it seems that this method is not supported in LA or QM.
Is there a better implementation method in LA? thanks.
Sometimes, SendKeys Ctrl+A selects all the text on the entire webpage. Filling in the text boxes is the most troublesome issue I've encountered.
The following code works, but I have to add a 1-second delay; otherwise, the last text fills in the first text box.
In some other commercial RPA software, the steps recorded with the recording function can execute very stably without adding delays.
Most commercial RPA software uses XPath or CSS selectors for element positioning, but it seems that this method is not supported in LA or QM.
Is there a better implementation method in LA? thanks.
var w4 = wnd.find(3, "test - Google Chrome", "Chrome_WidgetWin_1").Activate();
var e4 = w4.Elm["web:TEXT", "t1"].Find(3);
e4.SendKeys("Ctrl+A", "!1");
1.s();
var w5 = wnd.find(3, "test - Google Chrome", "Chrome_WidgetWin_1").Activate();
var e5 = w5.Elm["web:TEXT", "t2"].Find(3);
e5.SendKeys("Ctrl+A", "!a");
1.s();
var w6 = wnd.find(3, "test - Google Chrome", "Chrome_WidgetWin_1").Activate();
var e6 = w6.Elm["web:TEXT", "t3"].Find(3);
e6.SendKeys("Ctrl+A", "!b");
1.s();
var w7 = wnd.find(3, "test - Google Chrome", "Chrome_WidgetWin_1").Activate();
var e7 = w7.Elm["web:TEXT", "t4"].Find(3);
e7.SendKeys("Ctrl+A", "!c");
Sometimes, SendKeys Ctrl+A selects all the text on the entire webpage. Filling in the text boxes is the most troublesome issue I've encountered.