Selenium IDE - How to wait for options by name in the selected to fill?

I work with the Selenium IDE and on my webapp I have a choice of type:

<option value="34">Badge</option>
<option value="38">Bodywork</option>
<option value="1">Category 1</option>
<option value="36">Window</option>

I need to wait until the option is populated when selected using the name / text parameter (for example: โ€œIconโ€) instead of the / id value (for example, โ€œ34โ€) before continuing.

My idea is to use a function waitForElementPresent, but for the test I used assertElementPresentwhen the parameters were already filled.

I tried this:

assertElementPresent
css=select[id='cbo_Subcategory'] option[name='Badge']

and this one

(...) option[text='Badge']
(...) option[label='Badge']
(...) option[name=Badge]
(...) option[text=Badge]
(...) option[label=Badge]

but it didnโ€™t work. Any ideas?

+4
source share
1 answer

, css, xpath, : -

//select[@id='cbo_Subcategory']/option[text()='Badge']

, ..:)

+5

All Articles