cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sakhigarg
Regular Visitor

Increment down key on a web page drop down

Hi All,

 

I'm trying to build a flow to select each option of drop-down one by one using SEND KEYS option in PAD. For example:

On amazon website first using the "Down" Send key, it will first move to "All Department" and then press enter. Then it will move to "Arts & Craft" option and press enter. This should happen till the end of the drop-down list.

 

Please note: "Select drop-down list value on webpage" option is not working on the website I'm working.

 

sakhigarg_2-1645610355963.png

 

Please find screenshot of the way I'm trying to do this: I'm was trying to run it for first 5 options. But it just simply select drop down and click on "All department" 5 times.

 

sakhigarg_0-1645609861659.png

 

Kindly let me know if my query is not clear. 

Thanks,

Sakhi Garg

 

1 ACCEPTED SOLUTION

Accepted Solutions

You can put if in the loop and for the 1st just send enter instead of down, enter.

 

Guriga_0-1645616049322.png

Hope the content above may help you.

Best Regards

If my answer helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

11 REPLIES 11
Highboy
Super User
Super User

This works without send keys, actually you dont have to click anything.
You can set loop to 1000 if you want, it will still stop at the last menu item without error.

Highboy_0-1645613163972.png

 

On block error (settings)

Highboy_0-1645613503297.png

Set drop-downlist value on web page (settings)

Highboy_1-1645613570005.png

I am sure there are other ways of doing this, but it's fast, it works, and no click. 😊

Guriga
Advocate II
Advocate II

Hi,

 

this working for me perfectly:

 

Guriga_0-1645613854017.png

Hope the content above may help you.

Best Regards

If my answer helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Be aware that if the screen resolution should change, or the script has to run on another computer with a different screen resolution it wil fail.

Yes, that is true.

I just did this way for testing.

Hi @Highboy ,

 

Thanks for the reply. But in my website "Select drop-down list value on webpage" will not work which is why I'm using SEND Keys.

Henrik_M
Dual Super User
Dual Super User

Try this:

 

LOOP 1 --> 15

    Click link

    Send keys: {Down:%LoopIndex%}{Return}

END LOOP

Hi @Guriga ,

 

Thanks for the reply. Your solution is partially working for me. Though it starts from the selected 2nd option instead of 1st. It skips the 1st option as by default when you click on drop down 1st option is automatically highlighted because of which it moves to 2nd option in {Down}{Return} step. Is there a way to get 1st option & then 2nd. 

 

Thanks,

Sakhi

 

Please note I have taken Amazon as an example since cannot share the actual site screenshot.

You can put if in the loop and for the 1st just send enter instead of down, enter.

 

Guriga_0-1645616049322.png

Hope the content above may help you.

Best Regards

If my answer helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @Guriga 

 

Above solution works but only upto the options that are visible without scrolling any further. Basically as per amazon example: the loop will run till "Music, CD & Vinyl", after that it will start from 2nd option again instead of going down since next option is not visible. 

 

Kindly help me on this.

 

Thanks,

Sakhi

I increased the number to 40 and on Amazon, it worked perfectly.

Yes but the website I'm using this solution is not working. Just gave amazon as an example to explain the issue.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (1,076)