sinan73 wrote: ↑Tue Feb 19, 2019 7:21 pm
Thank you for answering. I'm using the free version.
The 'Relative Positioning' and the 'SEARCH' command are too complicated for what I want.
I did a lot of research on EVAL, but I don't know how to write the code you specified in option 2, can you help me?
Ah, OK for 'Free Version'...
Hum, and I forgot to mention, try to select the "correct" Sub-Forum (next time) when you open a Thread, your Thread has nothing specific to 'iMacros for CR' (only) and should have been opened in the 'General' Sub-Forum, or the 'Data Extraction' Sub-Forum would also have been "correct"... But OK, good enough for this time..., and no need to duplicate of course...
Yeah well, the 'Relative Positioning' way is from very faaaaar, the easiest...! You simply need to add an "R" to your existing Code, ah-ah...!! There is nothing "complicated" about that, ah-ah...! (Or you can already completely forget about iMacros, oops...!)

:
Code: Select all
TAG POS=1 TYPE=SPAN ATTR=TXT:Kabul<SP>Et
TAG POS=R1 TYPE=SPAN ATTR=CLASS:icon-cross
The 'TAG POS=R1' won't do anything if the first 'TAG' is not found...
Hum, OK, and you need to activate '!ERRORIGNORE' of course for when your "Search Element" = 'Anchor' is not present..., or if the 2nd Element also might not always be present, unless you prefer to let your Script automatically abort..., and you'll probably want to shorten '!TIMEOUT_STEP' to "1" or "0":
Code: Select all
SET !ERRORIGNORE YES
SET !TIMEOUT_STEP 1
TAG POS=1 TYPE=SPAN ATTR=TXT:Kabul<SP>Et
TAG POS=R1 TYPE=SPAN ATTR=CLASS:icon-cross
See how simple it is...!?

- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE').
- I don't even read the Qt if that (required) Info is not mentioned...!
- Script & URL help a lot for more "educated" Help...