Other ways on Choosing an item in a drop down list, with Very similar selector

So here’s my situation. In a pop-up form that I open, there exists 3 drop-down columns. I am trying to put a specific item on them using select item, but it isn’t valid. So I decided to manually do it with click activities. I managed to do the thing in the first drop down, the problem is. The selector for the 2nd and 3rd drop down is somehow the same with the first one, with only the aaname and innertext that is different. I need to set the aaname and innertext to wildcard for validation, but doing so makes the selector pick the first drop down for some reason.

BTW, I open the selectors with the UI Explorer and I managed to get the SELECT Tag for the drop down, but it won’t work/pick when using select item.

I had the same situation and like you said I added ‘aaname’ in UiExplorer and it worked. Can you send a screenshot of the dropdown and the UiExplorer? It will be easier to help :slight_smile:

I’m sorry, I can’t share the screenshots, but I can put the selector here:

Drop Down 1 and 2:

<html app='chrome.exe' title='*' />
<webctrl aaname='After' parentid='Customer-Page' tag='SPAN' class='k-input' css-selector='body&gt;div&gt;form&gt;div&gt;span&gt;span&gt;span' innertext='After' isleaf='1' parentclass='k-dropdown-wrap k-state-default' title='*' idx='1' />

Drop Down 3:

<html app='chrome.exe' title='*' />
<webctrl aaname='Before' parentid='Customer-Page' tag='SPAN' class='k-input' css-selector='body&gt;div&gt;form&gt;div&gt;span&gt;span&gt;span' innertext='Before' isleaf='1' parentclass='k-dropdown-wrap k-state-default' title='*' idx='2' />

Drop Down 1 and 3 have the same item choices. If I set the aaname and innertext of Drop Down 2 to wildcard(*), it will point to Drop Down 1
Drop Down 1 and have the same exact selectors(including idx), the only diffrence is their item choices.

So dropdown 1 and 2 are both - “After”? And which one are you trying to select? Thanks :slight_smile:

Drop Down 1 and 3 Choices: ‘Before’, ‘After’, and ‘Equal’
Drop Down 2 Choices: ‘And’ and ‘Or’

My requirements is to set Drop Down 1 to ‘After’, Drop Down 2 to ‘And’, and Drop Down 3 to ‘Before’ or ‘After’.

Problem is, I need to put a wildcard on their aaname, as the current choice present is dynamic. It won’t validate if I set the Drop Down 2’s aaname to ‘And’ while the current choice is ‘Or’

dropdowns in web apps can occur in different types (select/option, texfield/datalist…)

we do see span as tag on the selector

Give a try on:

  • including the select element into the selector history

I tried it, but it won’t highlight anything although it validates. I originally tried the select item activity while using the SELECT tag from the UIExplorer, but for some reason, It won’t change. The choices(OPTION Tags) are present under the SELECT’s Children. I’m not sure why it doesn’t change. I’ve also tried clicking the SELECT Tag, but it closes the pop-up form instead.

it can happen that a select item is not working properly / unreliable.

we were addressing more this statement with the hint include the select within the selector hierarchy.

The best support for us would be, that you share with us some more visuals:

  • how the 3 drops down looks on web page
  • some structure details from browser F12 web tools

Not sure if this is what your looking for. This is what the select tag of the 2nd Drop Down Looks like:

<select class="filter-data" data-bind="lookupOptions: [{&quot;Text&quot;:&quot;And&quot;,&quot;Value&quot;:1},{&quot;Text&quot;:&quot;Or&quot;,&quot;Value&quot;:2}], lookupValue: logic, nullValue: null, serverSorting: true" data-role="dropdownlist" style="display: none;"><option value="1">And</option><option value="2">Or</option></select>
<option value="1" selected="selected">And</option>
<option value="2" selected="selected">Or</option>

Here’s what the drop down looks like. I’ve erased some text, I’m sorry. I start by clicking the filter button on the top, then pick an item from the drop downs.
Drop Down