Hello Aneglo,
Thank for you answer.
The code HTML del combo box is
<div class="dijit dijitReset dijitInlineTable dijitLeft dijitTextBox dijitComboBox dijitTextBoxDisabled dijitComboBoxDisabled dijitDisabled" id="widget_sel_cod_mov_fper" role="combobox" dir="ltr" lang="" widgetid="sel_cod_mov_fper" style="width: 200px;" aria-disabled="true">
<div class="dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton dijitArrowButtonContainer" dojoattachpoint="_buttonNode, _popupStateNode" role="presentation">
<input class="dijitReset dijitInputField dijitArrowButtonInner" value="▼ " type="text" tabindex="-1" readonly="readonly" role="presentation">
</div>
<div class="dijitReset dijitValidationContainer">
<input class="dijitReset dijitInputField dijitValidationIcon dijitValidationInner" value="Χ" type="text" tabindex="-1" readonly="readonly" role="presentation">
</div>
<div class="dijitReset dijitInputField dijitInputContainer">
<input class="dijitReset dijitInputInner" type="text" autocomplete="off" dojoattachpoint="textbox,focusNode" role="textbox" aria-haspopup="true" id="sel_cod_mov_fper" tabindex="-1" aria-required="false" aria-invalid="false" value="" disabled="" aria-disabled="true">
<input type="hidden" name="sel_cod_mov_fper" value="" disabled="">
</div>
</div>
------------------------------
Jenny Nieto
------------------------------
Original Message:
Sent: Fri November 03, 2023 08:27 AM
From: Angelo Alves
Subject: How to identify when combo box is disabled
Hello Jenny,
I needed to see the HTML code to understand the scenario correctly.
But what could you do
- Wait for the Combobox element with the webWaitElement command and after validating whether the first option exists with the same command, but passing the CSS/Xpath of the first option (select > Option)
- Or to validate if it is enabled, you can obtain the Combobox html and check if it has the 'disabled' tag or run a javascript command that returns it to you
Hope this helps.
Hugs
------------------------------
Angelo Alves
Original Message:
Sent: Tue October 31, 2023 03:53 PM
From: Jenny Nieto
Subject: How to identify when combo box is disabled
Hi
How can I identify when a combo box is disabled on a web page?
In my case, the combo box does not work directly, I must add the set value to field command, because the combobox element is located within a frame on the web page.
------------------------------
Jenny Nieto
------------------------------