Firefox 56.0.2
imacros 8.9.7
windows 7 Pro
I'm trying to fill in a sign up form and by using the experimental event recording mode, "favor elements Ids" in selectors option ticked, below is how the codes are captured.
EVENT TYPE=CLICK SELECTOR="#ida" BUTTON=0
EVENTS TYPE=KEYPRESS SELECTOR="#ida" CHARS="Peter"
If I were to un-tick the "favor elements Ids" option, below is what I get instead.
EVENT TYPE=CLICK SELECTOR="HTML>BODY>DIV>DIV:nth-of-type(3)>DIV:nth-of-type(2)>FORM>UL>LI>DIV>DIV>DIV:nth-of-type(2)>DIV>DIV>DIV>FIELDSET>UL>LI>DIV>SPAN>INPUT" BUTTON=0
EVENTS TYPE=KEYPRESS SELECTOR="HTML>BODY>DIV>DIV:nth-of-type(3)>DIV:nth-of-type(2)>FORM>UL>LI>DIV>DIV>DIV:nth-of-type(2)>DIV>DIV>DIV>FIELDSET>UL>LI>DIV>SPAN>INPUT" CHARS="Peter"
The code using the id worked for me at the beginning, but as I run the script for multiple iterations, the ID changed, from "ida" to "ide"
EVENT TYPE=CLICK SELECTOR="#ide" BUTTON=0
EVENTS TYPE=KEYPRESS SELECTOR="#ide" CHARS="Peter"
I told myself, ok, this is fine, not the end of the day, I'll just use the other two lines of code stated above then which works for me most of the time, but guess I was too optimistic. The element changed also.. See the codes captured below
EVENT TYPE=CLICK SELECTOR="HTML>BODY>DIV>DIV:nth-of-type(3)>DIV:nth-of-type(2)>FORM>UL>LI:nth-of-type(2)>DIV>DIV>DIV:nth-of-type(2)>DIV>DIV>DIV>FIELDSET>UL>LI>DIV>SPAN>INPUT" BUTTON=0
EVENTS TYPE=KEYPRESS SELECTOR="HTML>BODY>DIV>DIV:nth-of-type(3)>DIV:nth-of-type(2)>FORM>UL>LI:nth-of-type(2)>DIV>DIV>DIV:nth-of-type(2)>DIV>DIV>DIV>FIELDSET>UL>LI>DIV>SPAN>INPUT" CHARS="Peter"
I've been searching and searching in the forum and google, couldn't find any solutions. Appreciate if someone could provide some hints/insights on how to deal with this. Thanks. I'm already clueless
