Drop-down list

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.

Moderators: Community Moderators, iMacros Moderators

Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.

Drop-down list

by bobducs on Thu Nov 30, 2017 5:11 am

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/full?photo_id=500284581844


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.
bobducs
 
Posts: 4
Joined: Mon Jun 13, 2016 10:28 am

Re: Drop-down list

by chivracq on Thu Nov 30, 2017 8:08 am

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/full?photo_id=500284581844


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)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
chivracq
 
Posts: 6479
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)

Re: Drop-down list

by bobducs on Thu Nov 30, 2017 10:36 am

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
bobducs
 
Posts: 4
Joined: Mon Jun 13, 2016 10:28 am

Re: Drop-down list

by chivracq on Thu Nov 30, 2017 11:03 am

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)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
chivracq
 
Posts: 6479
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)

Re: Drop-down list

by bobducs on Fri Dec 01, 2017 12: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
bobducs
 
Posts: 4
Joined: Mon Jun 13, 2016 10:28 am

Re: Drop-down list

by chivracq on Sun Dec 03, 2017 8:25 pm

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)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
chivracq
 
Posts: 6479
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)

Re: Drop-down list

by bobducs on Mon Dec 04, 2017 9:48 am

I could not and I gave up. Many thanks for the tips! :cry:
bobducs
 
Posts: 4
Joined: Mon Jun 13, 2016 10:28 am

Re: Drop-down list

by chivracq on Mon Dec 04, 2017 9:56 am

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)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
chivracq
 
Posts: 6479
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)


Return to iMacros for Firefox

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Majestic-12 [Bot] and 11 guests

-->