I want to click on the last element using C#. I've converted click block to C# and got:
// Action designer, type RiseEvent
HtmlElement he = instance.ActiveTab.GetDocumentByAddress("0").FindElementByAttribute("span", "class", "value", "text", last);
if (he.IsVoid) return -1;
// Emulation delay
instance.WaitFieldEmulationDelay();
// Call the event "click"
he.RiseEvent("click", instance.EmulationLevel);
I got error with the "last" keyword.
How can I click on the last element using C#?
// Action designer, type RiseEvent
HtmlElement he = instance.ActiveTab.GetDocumentByAddress("0").FindElementByAttribute("span", "class", "value", "text", last);
if (he.IsVoid) return -1;
// Emulation delay
instance.WaitFieldEmulationDelay();
// Call the event "click"
he.RiseEvent("click", instance.EmulationLevel);
I got error with the "last" keyword.
How can I click on the last element using C#?