Lampard
(Lampard)
April 15, 2019, 3:15am
1
Hello all,
I have dropdown list in my website. and an onchange event is binding to that dropdown list. I can use the ‘select value’ activity to select the right value. but after it, the on change event will not be triggered.
do you have any idea, solution or workaroud? Thanks a lot
redlynx82
(Wolfgang)
April 15, 2019, 5:37am
2
You could try firing OnChange manually using the Inject JS Script activity.
Based here:
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
“The onchange attribute fires the moment when the value of the element is changed.”
You may try going to the next element (i.e. text field, button) or try adding send hotkey activity (i.e. enter, tab)
Lampard
(Lampard)
April 15, 2019, 8:17am
4
Thanks for the advice. finally I got a error message when I change the dropdown list value through Robot:
An outgoing call cannot be made since the application is dispatching an input-synchronous call.
The on change event call a form post method. don’t know if there is any solution.
vsibanyo
(Vus'muzi)
April 15, 2019, 8:31am
5
Trigger the event that updates the onchange attribute. If you’re supposed to hover on a certain button before you click on any item in the dropdown list - use a hover activity and then a click
Lampard
(Lampard)
April 15, 2019, 9:13am
6
Thanks, it seems the options of dropdown list cannot he hovered by Uipath selector.
Lampard
(Lampard)
April 15, 2019, 9:16am
7
I got a workaround that:
first click the dropdown list to expand the all the options
send hot key : because my options are begin with different numbers, so I send the wanted numbers to the hot key
send hot key:enter
But this is only work for the options begins with the number. Don’t know how to prevent that error message by the normal select item activity.
1 Like