Deeper wrote: ↑Wed Nov 04, 2020 11:16 pm
Hello. Thank you for reply.
You then do some 'TAB OPEN' before switching to that/those Tab(s), but it/they will be "empty" if you don't do any 'URL GOTO' in it/them before you can fire any following 'TAG' or 'EVENT' Commands...
=> You need to extract the Link URL from 'TAB_1' to reuse on your newly opened 'TAB_2(+)' with 'URL GOTO'...
Okay. You are right. This part of my code doesn't work properly. I need to extract the Link URL from 'TAB_1' to reuse it on my newly opened 'TAB_2(+)' with 'URL GOTO'. But the links don't look typically like
http://something.com/ How can I write it correctly? I wasted several hours to do that, but without any success... I got an error saying:
Can not locate element specified by selector "HTML>BODY>DIV:nth-of-type(4)>DIV:nth-of-type(2)>DIV:nth-of-type(2)>DIV:nth-of-type(1)>DIV>DIV>A>IMG", line: 5 (Error code: -921)
"Okay. You are right."
=> Yeah-yeah, don't worry, I'm ALWAYS right, ah-ah...! (Well..., in 99% of the Cases, ah-ah...!)
OK, more seriously, pfff..., I don't "know"..., URL/Site not posted, => I only give "Generic" Advice...
If your Site needs to be kept "so secret", I already gave you all Info...
=> To extract the URL of your Links from 'TAB_1', you need to use the 'TAG' Mode with the 'EXTRACT' Mechanism, that's the "Way to go", either with 'EXTRACT=HREF' or with 'EXTRACT=HTM' on "some" Element or the whole Source, and then + 'EVAL()' to isolate the Data that you want to keep, but 'EXTRACT=HREF' should "do the Job" already, I don't know what you mean by "But the links don't look typically like
http://something.com/"... Hum, well, I do probably..., but I won't go into some endless if/if/if Scenario/Explanation...
I actually do have a Technique to implement the 'EXTRACT' Mechanism/Func to the 'EVENT' Mode, but I've never posted it (yet), and I definitely won't post it in this Thread about some "secret Site", sorry but when I post "Creative" Solutions, it's to help the whole Community, not just one User who wants "to beat the Competition"...
The easiest Way in your Case anyway would be the 'Ctrl^CLICK' using the 'EVENT' Mode, I would think...
>>>
Deeper wrote: ↑Wed Nov 04, 2020 11:16 pm
And use a Var if you want to loop or more "easily" hard-copy Blocks of the same Code for the [1-10] in "DIV:nth-of-type(n)"...
Okay. This part of my code works, but is there any other way to write it (as you mentioned before) more "easily" using VAR?
Any ideas for both of my problems?
Yep, I've said everything already, several other Threads on the Forum about that Func, search a bit, and/or try to implement it yourself... It's fairly easy..., nothing very "complicated"...
>>>
EDIT:
Deeper wrote: ↑Wed Nov 04, 2020 11:16 pm
And BTW. I've just installed ver. 8.9.7. I feel much safer
OK, seen your Edit... Good-good...!
v9.0.3 for FF was a bit of a "useless" Version anyway, pretty Buggy, unless you used only the "very Standard'" Functionality/Commands, for some "easy" Click-Click-Click... v8.9.7 is muuuuch better, ah-ah...!
That Version btw also works on PM28/Basilisk2020/Waterfox2020, if you ever need a Browser forked on FF that didn't adopt the 'WebExtensions' Architecture and that still gets maintained, for Security Updates etc...
- (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...