Hi,
I am using the Set value from profile to select a city from a drop down. However, the drop-down requires the user to execute the Enter key on a keyboard to make the selection. The ZM tools allows me to create the Selection emulation and the keystroke emulation, but no ability to combine both in the same action. The only way to execute this is to create a C+ code I presume.
This is what I have so far:
// Action designer, type Set
HtmlElement he = instance.ActiveTab.GetDocumentByAddress("0").FindElementByTag("form", 0).FindChildById("7ec089f3-7b35-4570-bea4-eb01f28b810e");
if (he.IsVoid) return -1;
// Emulation delay
instance.WaitFieldEmulationDelay();
// Set element value "project.Profile.Town"
he.SetValue(project.Profile.Town, instance.EmulationLevel, true);
instance.WaitFieldEmulationDelay();
// Emulate text entering
instance.SendText("Enter", 15);
This isn't working properly as I am not making the correct argument to make the bot execute the Enter key keystroke after it makes a random selection. Can someone please assist me in fixing the code above?
Thank you in advance.
I am using the Set value from profile to select a city from a drop down. However, the drop-down requires the user to execute the Enter key on a keyboard to make the selection. The ZM tools allows me to create the Selection emulation and the keystroke emulation, but no ability to combine both in the same action. The only way to execute this is to create a C+ code I presume.
This is what I have so far:
// Action designer, type Set
HtmlElement he = instance.ActiveTab.GetDocumentByAddress("0").FindElementByTag("form", 0).FindChildById("7ec089f3-7b35-4570-bea4-eb01f28b810e");
if (he.IsVoid) return -1;
// Emulation delay
instance.WaitFieldEmulationDelay();
// Set element value "project.Profile.Town"
he.SetValue(project.Profile.Town, instance.EmulationLevel, true);
instance.WaitFieldEmulationDelay();
// Emulate text entering
instance.SendText("Enter", 15);
This isn't working properly as I am not making the correct argument to make the bot execute the Enter key keystroke after it makes a random selection. Can someone please assist me in fixing the code above?
Thank you in advance.