Drop-down list

Discussions and Tech Support specific to the iMacros Firefox add-on.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team

Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
bobducs
Posts: 4
Joined: Mon Jun 13, 2016 5:28 pm

Drop-down list

Post by bobducs » Thu Nov 30, 2017 12:11 pm

Hello!
I'm in trouble and I can not solve it. I'm a basic user in the imacros world so I'm asking you for help.
I have already tried using firefox, chrome and palemoon and I can not select the option from a drop-down list.
I have attached the image for you to help me.

Image site
https://www.photobox.co.uk/my/photo/ful ... 0284581844


My code imacros

Code: Select all

URL GOTO=https://app.hugme.com.br/app.html#/dados/tickets/graficos/geral/
TAG POS=2 TYPE=INPUT:TEXT FORM=NAME:NoFormName ATTR=* CONTENT=user	
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=NAME:NoFormName ATTR=* CONTENT=password
TAG POS=1 TYPE=BUTTON FORM=NAME:NoFormName ATTR=TXT:entrar
WAIT SECONDS=8
TAG POS=1 TYPE=I ATTR=CLASS:icon-stats&&TXT:
WAIT SECONDS=3
TAG POS=1 TYPE=I ATTR=CLASS:icon<SP>icon-ticket2&&TXT:
WAIT SECONDS=3
TAG POS=1 TYPE=I ATTR=CLASS:icon<SP>icon-chart&&TXT:
WAIT SECONDS=3
TAG POS=1 TYPE=A ATTR=TXT:Tags
WAIT SECONDS=3
TAG POS=6 TYPE=UL ATTR=TXT:
WAIT SECONDS=3
Settings I use lately.
Pale Moon Version: 24.6.2 (x86)
Windows 10 (x64)
Imacros for Firefox 8.8.2.1


Thank you very much.
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Drop-down list

Post by chivracq » Thu Nov 30, 2017 3:08 pm

bobducs wrote:Hello!
I'm in trouble and I can not solve it. I'm a basic user in the imacros world so I'm asking you for help.
I have already tried using firefox, chrome and palemoon and I can not select the option from a drop-down list.
I have attached the image for you to help me.

Image site
https://www.photobox.co.uk/my/photo/ful ... 0284581844


My code imacros

Code: Select all

URL GOTO=https://app.hugme.com.br/app.html#/dados/tickets/graficos/geral/
TAG POS=2 TYPE=INPUT:TEXT FORM=NAME:NoFormName ATTR=* CONTENT=user	
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=NAME:NoFormName ATTR=* CONTENT=password
TAG POS=1 TYPE=BUTTON FORM=NAME:NoFormName ATTR=TXT:entrar
WAIT SECONDS=8
TAG POS=1 TYPE=I ATTR=CLASS:icon-stats&&TXT:
WAIT SECONDS=3
TAG POS=1 TYPE=I ATTR=CLASS:icon<SP>icon-ticket2&&TXT:
WAIT SECONDS=3
TAG POS=1 TYPE=I ATTR=CLASS:icon<SP>icon-chart&&TXT:
WAIT SECONDS=3
TAG POS=1 TYPE=A ATTR=TXT:Tags
WAIT SECONDS=3
TAG POS=6 TYPE=UL ATTR=TXT:
WAIT SECONDS=3
Thank you very much.
(F)CIM...! :mrgreen: (Read my Sig...)
Always mention your FCI when you open a Thread, I normally don't read if that Info is not mentioned...
Hum, you seem to have tried in 3 different Browsers and therefore 3 different FCI's, which means that your Pb is not specific to iMacros for FF. => Try to select the correct Sub-Forum then when you open a Thread, the correct one would have been the 'General' one... (But no need to duplicate now...)

Hum, can't access your Screenshot, the Link/Site redirects automatically to their Home Page...

I don't see any DDLB in your Script (normally/usually of Type 'SELECT')... If the 'TAG POS=6 TYPE=UL' Statement is the one supposed to select an Option in your DDLB, that probably means it gets dynamically constructed and populated from some JavaScript and the 'TAG' Mode indeed often has Difficulties handling such DDLB's... => Try using the 'EVENT' Mode which usually can handle those correctly... :idea:

Oh...!, EDIT:
I see that you've added your FCI while I was typing my Reply... Good...! :D
bobducs wrote:Settings I use lately.

Code: Select all

Pale Moon Version: 24.6.2 (x86)
Windows 10 (x64)
Imacros for Firefox 8.8.2.1
Good-good...!, I use the same FCI myself... 8)
(Well..., I now use PM v26.3.3 instead of v24.6.2, Version that I used myself as well for a very long time (I think I used v24.6.2 => v24.6.3 => v24.6.4 then, before updating PM to v26.3.3 maybe 6 months ago already now... (when FF was at FF47...))
- (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...
bobducs
Posts: 4
Joined: Mon Jun 13, 2016 5:28 pm

Re: Drop-down list

Post by bobducs » Thu Nov 30, 2017 5:36 pm

I forgot to put the (F) CIM and went back to edit :). :oops:
I recorded a video showing how the process is done. I would like to select some options but I can not. The image I attached previously did not work, so I hosted on youtube the video.

https://youtu.be/b-wlPKaaCFI

I do not understand web programming, so I can not go on.
Can you help me?

thx
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Drop-down list

Post by chivracq » Thu Nov 30, 2017 6:03 pm

bobducs wrote:I forgot to put the (F) CIM and went back to edit :). :oops:
I recorded a video showing how the process is done. I would like to select some options but I can not. The image I attached previously did not work, so I hosted on youtube the video.

https://youtu.be/b-wlPKaaCFI

I do not understand web programming, so I can not go on.
Can you help me?

thx
Yeah well, use the 'EVENT' Mode for the Selection in the DDLB like I already mentioned...
- (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...
bobducs
Posts: 4
Joined: Mon Jun 13, 2016 5:28 pm

Re: Drop-down list

Post by bobducs » Fri Dec 01, 2017 7:01 pm

Thank you Chivracq. :wink:

I came back for help. I'm using "EVENT" and I've been able to select an option. But I could not select the desired option.

My code:

Code: Select all

VERSION BUILD=844 RECORDER=CR
SET !TIMEOUT_PAGE 500
SET !VAR1 EVAL("var d=new Date();d.setDate(d.getDate()-1);var year=d.getFullYear();var month=d.getMonth()+1;var day=d.getDate();day+'/'+month+'/'+year;")
SET !ERRORIGNORE YES

URL GOTO=https://app.hugme.com.br/app.html#/dados/tickets/graficos/geral/
TAG POS=2 TYPE=INPUT:TEXT FORM=NAME:NoFormName ATTR=* CONTENT=user
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=NAME:NoFormName ATTR=* CONTENT=password
TAG POS=1 TYPE=BUTTON FORM=NAME:NoFormName ATTR=TXT:entrar

WAIT SECONDS=8
TAG POS=1 TYPE=I ATTR=CLASS:icon-stats&&TXT:
WAIT SECONDS=3
TAG POS=1 TYPE=I ATTR=CLASS:icon<SP>icon-ticket2&&TXT:
WAIT SECONDS=3
TAG POS=1 TYPE=I ATTR=CLASS:icon<SP>icon-chart&&TXT:
WAIT SECONDS=3
TAG POS=1 TYPE=A ATTR=TXT:Tags
WAIT SECONDS=3
TAG POS=6 TYPE=UL ATTR=TXT:
WAIT SECONDS=3
EVENT TYPE=MOUSEDOWN SELECTOR="#select2-drop>UL>LI:nth-of-type(10)>UL>LI:nth-of-type(8)>UL>LI:nth-of-type(6)>DIV" BUTTON=0
WAIT SECONDS=3
EVENT TYPE=MOUSEMOVE SELECTOR="#select2-drop>UL>LI:nth-of-type(10)>UL>LI>UL>LI>DIV" POINT="(393,641)"
WAIT SECONDS=3
EVENT TYPE=MOUSEUP POINT="(244,627)"
What is the difference between these events?

Code: Select all

EVENT TYPE = MOUSEMOVE SELECTOR = "# select2-drop> UL> LI: nth-of-type (10)> UL> LI> UL> LI> DIV" POINT = "(393,641)"
There are several options, but I only want one.

Code: Select all

EVENT TYPE = MOUSEUP POINT = "(292,721)"
When I use this code, an option is randomly selected.

https://youtu.be/375LVbppqLU
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Drop-down list

Post by chivracq » Mon Dec 04, 2017 3:25 am

bobducs wrote:Thank you Chivracq. :wink:

I came back for help. I'm using "EVENT" and I've been able to select an option. But I could not select the desired option.

My code:

Code: Select all

VERSION BUILD=844 RECORDER=CR
SET !TIMEOUT_PAGE 500
SET !VAR1 EVAL("var d=new Date();d.setDate(d.getDate()-1);var year=d.getFullYear();var month=d.getMonth()+1;var day=d.getDate();day+'/'+month+'/'+year;")
SET !ERRORIGNORE YES

URL GOTO=https://app.hugme.com.br/app.html#/dados/tickets/graficos/geral/
TAG POS=2 TYPE=INPUT:TEXT FORM=NAME:NoFormName ATTR=* CONTENT=user
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=NAME:NoFormName ATTR=* CONTENT=password
TAG POS=1 TYPE=BUTTON FORM=NAME:NoFormName ATTR=TXT:entrar

WAIT SECONDS=8
TAG POS=1 TYPE=I ATTR=CLASS:icon-stats&&TXT:
WAIT SECONDS=3
TAG POS=1 TYPE=I ATTR=CLASS:icon<SP>icon-ticket2&&TXT:
WAIT SECONDS=3
TAG POS=1 TYPE=I ATTR=CLASS:icon<SP>icon-chart&&TXT:
WAIT SECONDS=3
TAG POS=1 TYPE=A ATTR=TXT:Tags
WAIT SECONDS=3
TAG POS=6 TYPE=UL ATTR=TXT:
WAIT SECONDS=3
EVENT TYPE=MOUSEDOWN SELECTOR="#select2-drop>UL>LI:nth-of-type(10)>UL>LI:nth-of-type(8)>UL>LI:nth-of-type(6)>DIV" BUTTON=0
WAIT SECONDS=3
EVENT TYPE=MOUSEMOVE SELECTOR="#select2-drop>UL>LI:nth-of-type(10)>UL>LI>UL>LI>DIV" POINT="(393,641)"
WAIT SECONDS=3
EVENT TYPE=MOUSEUP POINT="(244,627)"
What is the difference between these events?

Code: Select all

EVENT TYPE = MOUSEMOVE SELECTOR = "# select2-drop> UL> LI: nth-of-type (10)> UL> LI> UL> LI> DIV" POINT = "(393,641)"
There are several options, but I only want one.

Code: Select all

EVENT TYPE = MOUSEUP POINT = "(292,721)"
When I use this code, an option is randomly selected.

https://youtu.be/375LVbppqLU
Euh, yeah..., try to record clicking "a bit quickly" on the DDLB and the Option you want to select, in order to get 2 'CLICK' Statements, if you click "too slowly", iMacros records a 'MOUSECLICK' + 'MOUSEMOVE' + 'MOUSEUP' "thinking" you want to do a 'Drag&Drop' with the Mouse...
- (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...
bobducs
Posts: 4
Joined: Mon Jun 13, 2016 5:28 pm

Re: Drop-down list

Post by bobducs » Mon Dec 04, 2017 4:48 pm

I could not and I gave up. Many thanks for the tips! :cry:
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Drop-down list

Post by chivracq » Mon Dec 04, 2017 4:56 pm

bobducs wrote:I could not and I gave up. Many thanks for the tips! :cry:
Hum..., OK..., the 'EVENT' Mode should work, and it works already a bit, if some Option in the DDLB already gets selected, even if it's not exactly the one that you want, ah-ah...! I can't "play" with the Page myself to have a look, so I cannot be more "precise" with trying to help you... :wink:
- (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...
Post Reply