Tracking Dropdown Items of Web Applications

Ask general questions here.
shamann
Posts: 1
Joined: Wed Mar 20, 2019 3:12 pm

Tracking Dropdown Items of Web Applications

Post by shamann » Wed Mar 20, 2019 3:20 pm

Hi,

I've been writing test cases which use SetValue of Dropdown Lists which works just fine in IE. In Chrome and Firefox though, it doesn't work (the Ranorex Plugin is installed on all browsers).

Therefore I wanted to be able to first click the Dropdown and then select an Item. When I use Live Tracking, I'm left with this:
Unbenannt.PNG
Unbenannt.PNG (4.66 KiB) Viewed 48 times
Does anybody know a way to achieve this or a workaround?

Thanks in advance,
Stephan

User avatar
Support Team
Site Admin
Site Admin
Posts: 11798
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Tracking Dropdown Items of Web Applications

Post by Support Team » Wed Mar 20, 2019 8:13 pm

Hi Shamann,

Be sure you are using the Invoke Action > SetValue on the select box element, not the list item. It is recommended to also perform a click action on this select box before the SetValue action to fire any click event listeners that may be attached to this element that would not be otherwise fired with just a SetValue action.
1.png
1.png (3.82 KiB) Viewed 43 times
I hope this helps!

Regards,
Ned
.
Image