Send text to a <Select> using BrowserLibrary

I want to select a element, then search for the option that I desired by typing it.
Here’s a example:

    Focus    ${SELECT_ELEMENT}
    Press Key    ${SELECT_ELEMENT}    Enter
    Fill Text    ${SELECT_ELEMENT}    ${OPTION_I_DESIRE}
    Press Key    ${SELECT_ELEMENT}    ENTER

The problem is that the keyword “Fill Text” only allows me to send text to a input or text box element, there’s anyway to bypass that?

Have you tried “Type Text” ?
Or “Press Keys

https://marketsquare.github.io/robotframework-browser/Browser.html#Type%20Text
https://marketsquare.github.io/robotframework-browser/Browser.html#Press%20Keys

1 Like

Thanks, I made it by using “Select Options By ${select_element} text ${option_i_desire}” and now it works.