kambingjantan wrote:Code: Select all
Firefox 55; imacros 8.9.7 ; Windows 7
I have been really familiar in coding in imacros, but
This is something new to me.
I found this kind of ID naming,
Code: Select all
<div class="_4-u2 mbm _4mrt _5jmm _5pat _5v3q _4-u8" data-fte="1" data-ftr="1" id="mall_post_1988260348080319:6:0" role="article"
Point here:
mall_post_1988260348080319:6:0
And next problem, I can only use EVENT Javascript imacros to get it work.
So what I have done,
Extracting ID, and then assigned it to code like this
Code: Select all
iimPlayCode (
"EVENT TYPE=CLICK SELECTOR=\"#mall_post_"+ something +":6:0>DIV>DIV>DIV:nth-of-type(2)>DIV>DIV>DIV>DIV>DIV>DIV>DIV>DIV>SPAN:nth-of-type(1)>DIV>A\" BUTTON=0" + ln
);
Point here:
SELECTOR=\"#mall_post_"+ something +":6:0
Notice the bolded stuff? Yeah you can then assume it won't work. The error message was this,
"Syntax error. [this is line of code] is not a valid selector, line 1 (Error code: -1001)"
I am not sure if I missed some other technique to do this. But really I was really sad if it couldn't be done.
Thanks!
Hum..., a bit surprised by your RuntimeError, I think the 'SELECTOR' Parameter is not supported/has not been implemented yet by/in iMacros for FF... But I'm a bit confused/unsure because the Error is a bit different from what I recall...
But OK anyway, I would have 1 or 2 Workarounds for Situations like yours..., never (really) needed that exact Functionality but was very "close" once a few months ago, so I already did "the Thinking", ah-ah...!
But, hum, pfff..., way too cumbersome to try to explain it in Words..., post a Site with URL and EXACT Steps of what you EXACTLY want...
But hum..., normally my first Reply in a Thread is a Reply to its Title..., (I read your Post and my Reply is a Reply to that Content), but to be honest, your Thread Title "Colon Distrupting The Extraction!!" doesn't make any sense to me..., "Distrup_whatever" is no English as a start
(and nbd will be using that (Key)Word to search the Forum), but even, I simply don't understand your Thread Title in combination with the Content of your Post...
=> If you can give a(real) Descriptive Thread Title...? (Or explain..., maybe I missed stg..., but if I got confused, Users searching the Forum usually put 1-2 sec to a Thread from its Title if it might be relevant to their Scenario/Search to decide if they are going to open/check it.)
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...