Thrilling wrote: ↑Mon Apr 04, 2022 3:03 pm
Hi,
I'm using
Code: Select all
iMacros VERSION BUILD=1011 on Chrome 100.0.4896.60 64bit on Windows Server 2012 R2 Datacenter
I'm having trouble with a dropdrown menu. When I record inputting data into it and replay that macro, it returns an error message and no results. The Dropdown menu is buried behind four pages of necessary data inputs, so I'll try to describe it as best I can:
It looks like this:
-----------------------------
1.jpg
-----------------------------
Clicking in it looks like this, you can select different countries:
-----------------------------
2.jpg
-----------------------------
You can narrow the results by typing letters into the field:
-----------------------------
3.jpg
-----------------------------
Once you select an option (you can either select an option by clicking it, or by hitting enter when the background is blue behind it), it looks like this:
(i think i can't upload more than 3 pictures, so i'll post it as a link:)
https://imgur.com/6rRRIES
You can input several countries in that field, one after the other.
1.
Recording clicking into the field and selecting the first country by mouse:
Code: Select all
TAG POS=1 TYPE=UL ATTR=TXT:
TAG POS=2 TYPE=LI ATTR=TXT:AFGHANISTAN
Replaying that Macro gives me a 6 second waiting time and then the following error message:
RuntimeError: element LI specified by TXT:AFGHANISTAN was not found, line: 2
2.
Recording clicking into the field, typing in "ger" to narrow the results, then clicking "germany" with the mouse:
Code: Select all
TAG POS=14 TYPE=INPUT:TEXT FORM=ACTION:VisaDetails ATTR=* CONTENT=ger
TAG POS=2 TYPE=LI ATTR=TXT:GERMANY
Replaying the code: Error message:
RuntimeError: element LI specified by TXT:GERMANY was not found, line: 2
3.
Recording selecting 5 countries one afther the other:
Code: Select all
TAG POS=1 TYPE=UL ATTR=TXT:
TAG POS=2 TYPE=LI ATTR=TXT:AFGHANISTAN
TAG POS=1 TYPE=UL ATTR=TXT:AFGHANISTAN
TAG POS=2 TYPE=LI ATTR=TXT:ALGERIA
TAG POS=1 TYPE=UL ATTR=TXT:AFGHANISTANALGERIA
TAG POS=2 TYPE=LI ATTR=TXT:ANDORRA
TAG POS=1 TYPE=UL ATTR=TXT:AFGHANISTANALGERIAANDORRA
TAG POS=2 TYPE=LI ATTR=TXT:ANGUILLA
TAG POS=1 TYPE=UL ATTR=TXT:AFGHANISTANALGERIAANDORRAANGUILLA
TAG POS=2 TYPE=LI ATTR=TXT:ANTIGUA<SP>AND<SP>BARBUDA
TAG POS=1 TYPE=UL ATTR=TXT:AFGHANISTANALGERIAANDORRAANGUILLAANTIGUA<SP>AND<SP>BARBUDA
TAG POS=2 TYPE=LI ATTR=TXT:AMERICAN<SP>SAMOA
Replaying the code: Error message:
RuntimeError: element LI specified by TXT:AFGHANISTAN was not found, line: 2
Is there any way I can make iMacros work here?
Thanks for any help
"Nice" to see you back on the Forum, I remember your last
Thread, which had been quite "interesting", ah-ah...!
FCI mentioned, very good, but 'Free'/'PE'/'Trial' is still missing about your v10.1.1 for CR Version...?
And I would think the Thread has probably nothing "really" specific to the 'iMacros for CR' Sub-Forum, I'll move it "eventually" to the 'General' one...
And you've indeed edited your OP to upload all Screenshots directly to the Thread/Forum, without using any external Pix Hosting Site, like mentioned in the Forum Rules, and this 'imgur' Site is a complete PITA anyway, (in my PM26 Browser), constantly nagging about "Cookies" and "We value your Privacy" etc..., and I only get a Black Screen..., the Source "used to" contain some "parallel"/fall-back '.jpg' or '.png' Picture meant for 'Twitter', until a few weeks ago at least, but not anymore apparently...
, so I can only see the first 3 Screenshots that have been uploaded to the Thread...
Hum..., I don't/didn't know about a Limitation for Max 3 Attachments/Uploads, there is a Max Size Limit (about 256Kb), per Attachment, but the "biggest" of the 3 is "only" 36Kb, so you are far below the Size Limit...
=> Then hum..., post/upload maybe the 4th Screenshot in an extra Post, I would say...
>>>
But OK, even without the 4th Screenshot, I think I already have "a clear picture" of your Scenario and the Behaviour/Issue...
The "Thing" is, that the 'Countries visited in Last 10 years' DDLB + Search Box gets dynamically populated upon starting to type the first Char(s) for the DDLB Entries/Countries, and the `TAG` Mode has always had "Difficulties" with that kind of HTML Elements and Dynamic DDLB's, and the "best/most reliable Solution" is usually to use the `EVENT` Mode for such Elements...
+ Also when using/recording with the `EVENT` Mode, apart from a first Click with the Mouse to select/click inside the Input Field (and that recorded 'CLICK' Statement is actually not really needed and can be commented out), to "keep using" the Keyboard after typing "ger" (for "Germany"), and to use the Keyboard 'Arrow Down' (or the 'Tab' Key) + 'Enter' for the Selection, rather than using the Mouse.
But hum..., "ger" + 1x 'Arrow Down' will work for "Germany", but "ira" for example would need 1x 'Arrow Down' for "Irak" and 2x for "Iran", => 3 Chars might not be enough to make sure the Result(s) always narrow down to only 1 Entry in the DDLB...
And I'm not sure further about the Multiple Selection, you probably need some 'Ctrl^Click', I'm not sure how to get the "same Result/Functionality" with Keyboard Actions (instead of Mouse Actions), you will need to "experiment" a bit, no URL posted, I cannot have a Look myself...
- (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...