Drop down select on change

dbzdbgt

New Member
Hello,

i'm currently working on a project and i came across this issue :

in a webpage i have a dropdown select menu from which i need to select an item. i spied the element using html mode and successfully selected the desired value. The issue is that there's a span element that changes dynamically when changing the value of the select. you need to explicitly open the drop-down menu using the mouse and clicking on an element in order for the span to change. (or to use the keyboard arrows UP/DOWN). but since i spy using html mode selecting an element is directly injected in the code and thus the span element won't notice the event of change and stays the same.

PS : can't spy using accessibility mode.

Thank you in advance.
 

yawak

New Member
Can you use UiA mode? If so, in a navigation stage you could try 'global send keys' to enter the desired select item of the dropdown.
 

Amarender

Member
Hello,

i'm currently working on a project and i came across this issue :

in a webpage i have a dropdown select menu from which i need to select an item. i spied the element using html mode and successfully selected the desired value. The issue is that there's a span element that changes dynamically when changing the value of the select. you need to explicitly open the drop-down menu using the mouse and clicking on an element in order for the span to change. (or to use the keyboard arrows UP/DOWN). but since i spy using html mode selecting an element is directly injected in the code and thus the span element won't notice the event of change and stays the same.

PS : can't spy using accessibility mode.

Thank you in advance.


Hi dbzdbgt

Can i know whether the span element that changes dynamically is same for different drop down selection.
If that is the case that only the span element that changes dynamically then in the attribute of html path pass "*" instead of number. For example if it is span[1] then change as span [*].

Hope it might solve your problem.

Thanks and Regards
Amar
 
Top