RohanM Posted June 30, 2022 Share Posted June 30, 2022 Dear AutoIT community, Can anyone help me to change the values in ng-select element, basically what I want to achieve here is? I want to change the values in dropdown box, the web site is ngular and I don't know how to get the particular element to change the list values I am using IE and internet explore browser I tried this function _IEFormElementOptionSelect but I am not sue how to get the object to pass in this function since element dose not have ID or name. html given below, <mcf-select class="ng-select-searchable ng-valid ng-touched ng-dirty"> <div class="mcf-select mcf-select-input-wrapper " id=""> <div class="select-wrapper"> <ng-select role="listbox" class="ng-select ng-select-single ng-select-searchable ng-valid ng-select-bottom ng-touched ng-dirty ng-select-opened"> <div class="ng-select-container ng-has-value"> <div class="ng-value-container"> <div class="ng-placeholder"></div><!----><!----><!----> <div class="ng-value ng-star-inserted" style=""><!----><!----> <span class="ng-star-inserted">SELECT VALUE 01</span> <span class="selected-item ng-star-inserted">SV</span> </div><!----><!----> <div class="ng-input"> <input role="combobox" type="text" autocorrect="off" autocapitalize="off" autocomplete="aa2bc34e00b4" aria-expanded="true" aria-owns="aa2bc34e00b4" aria-activedescendant="aa2bc34e00b4-2"> </div> </div><!----><!----> <span class="ng-arrow-wrapper"><span class="ng-arrow"></span></span> </div><!----> <ng-dropdown-panel class="ng-dropdown-panel ng-star-inserted ng-select-bottom" id="aa2bc34e00b4" style="opacity: 1;"><!----> <div class="ng-dropdown-panel-items scroll-host"><div></div> <div><!----><!----> <div class="ng-option ng-star-inserted" role="option" id="aa2bc34e00b4-0"><!----><!----> <div class="mcf-flex-box ng-star-inserted"> <div> <span>SELECT VALUE 02</span> </div> </div> </div> <div class="ng-option ng-option-selected ng-star-inserted" role="option" aria-selected="true" id="aa2bc34e00b4-1"><!----><!----> <div class="mcf-flex-box ng-star-inserted"> <div> <span>SELECT VALUE 01</span> </div> </div> </div> <div class="ng-option ng-star-inserted ng-option-marked" role="option" id="aa2bc34e00b4-2"><!----><!----> <div class="mcf-flex-box ng-star-inserted"> <div> <span>SELECT VALUE 03</span> </div> </div> </div><!----><!----><!----><!----> </div> </div><!----> </ng-dropdown-panel> </ng-select><!----></div> <mcf-msg-container mcfclass="mcf__validation -state-danger" class="hidden"> <div mcfdirection="" dir="null" class="mcf-msg-container mcf__validation -state-danger" id="-container"><!----><!----><!----></div> </mcf-msg-container></div> </mcf-select> Link to comment Share on other sites More sharing options...
RohanM Posted July 3, 2022 Author Share Posted July 3, 2022 Dear All can anyone help me on this? Link to comment Share on other sites More sharing options...
Danp2 Posted July 3, 2022 Share Posted July 3, 2022 On 6/30/2022 at 3:49 AM, RohanM said: tried this function _IEFormElementOptionSelect but I am not sue how to get the object to pass in this function since element dose not have ID or name. You may need to use _IETagNameGetCollection. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now