Skip to main content
Kofax

How to select options from a drop-down in the chromium (CEF) browser

308703

Summary

This Knowledgebase article details a particular situation when selecting options from a drop-down in the chromium (CEF) browser when these are <option> tags inside of a <select> tag (in the page DOM).

More Information

Note: Always check what type of tag is the drop-down. For example, if the tag is a <div> and all options are <div> tags as well, configure the robot to click on the drop-down and then click directly the option it needs to choose.

The information below applies to the cases when the drop down is a <select> tag.

For example:

clipboard_e48bb9761cfe446d4f5649b653d9fd0e7.png

 

To select an option from this drop down, we cannot use the <option> tags from under the <select> because this type of element doesn't have bounds so the mouse click won't work.

To select an option in a drop down (a <select> tag), follow these steps:

  1. Click on the <select> tag to open the list of options.
  2. After the click, there will be a new element created under window > ui called drop_down_list

    clipboard_e5a3f860e1e864cabd33ffa721ee1fe29.png
     
  3. The drop_down_list element contains all the options from the drop down and they can be selected from here:
    clipboard_e7034ce69c50a31bdc3fa19f5e382a5d0.png
     
  4. Therefore, the step that will select the option will be a Click in which the component selector will be

    drop_down_list > option

    with a setting to match an attribute value or text.
    E.g. to match "Algeria" which is in a text variable:

    clipboard_e721386ebfc60480b15e6187a3354200f.png

 

Applies to:  

Product Version Category
RPA 10.3 + Desktop Automation

 

Author:  Delia Milchis