Robotic Process Automation (RPA)

 View Only
  • 1.  How to identify when combo box is disabled

    Posted Wed November 01, 2023 12:39 PM

    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
    ------------------------------


  • 2.  RE: How to identify when combo box is disabled

    Posted Fri November 03, 2023 04:27 PM

    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
    ------------------------------



  • 3.  RE: How to identify when combo box is disabled

    Posted Tue November 07, 2023 08:45 AM

    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
    ------------------------------