I tried to use Select Item Activity to select the country in the drop down menu of a portal, but it fails and shows a blank field in the drop down menu as attached. However, actually there is no such blank choice in the menu.
Interesting thing is that the Select Item Activity works well on its own when I just try to test it again on a separate workflow, but it fails when it is used under another major workflow. I checked the Selector and all other properties are the same.
If select item activity won’t work then take two click activities one for clicking drop down box and other one is for selecting item from the list. And also make it dynamic selector.
@Vivek_Arunagiri
Thanks. I give the Attach Browser right before the Select Item activity, but it still doesn’t work.
@Iakshman
Thanks. Are the 2 activities both Click activity ? The first Click can get the pull down menu, and for the 2nd Click, inside the Selector property, should I also copy the Selector from the 1st Click activity before appending the aaname= ’ “+variableName.Tostring+” ’ ?
It is a long list, and the choice could be in the far end of the list. Does it matter ?
Yes first one is for to click pull down menu and second one is for select any item from drop down list and in place of that item pass variable name into selector to make it dynamic.
It doesn’t matter how much big the list and it will select particular item from list immediately.
If I manually made a choice in the pull down manual, and use UI Explorer to indicate the field, it got the selector as attached (same as previous picture)
Since the pull down menu will roll back when any other key is pressed, I used F2 to pause and manually pull down the menu, but the UI Explorer return an error saying that The UiElement is no longer valid, as attached.
After further trials over the last few weeks, I have some observations to share:
probably the Select Item Activity (when used in the sub-program of the main program) has not yet clicked on the selection as another windows pop up (that is why it shows “blank” on the data field) asking for confirmation of the selection
the Select Item Activity (when used alone for testing the function) works perfectly well. Not sure if it is due to processing delay or interruption by the pop-up windows when used under the main program !!
after investigation on the possible UI operations allowed by the portal, it is solved by using Click Activity (to click on the combo box), then using Type Into Activity to type the selection (has to be the default mode for “quick” input) follow with hotkey “enter”. The tricky part is to remove the selector of the Type Into Activity as it should not be typed into the combo box, but just anywhere in the browser.
Guess it may apply to many other different portals.