mercredi 10 juin 2020

Selenium unable to select drop down list, which is encoded in Jquery. Kindly please help me

  1. I'm able to selenium automate upto clicking of below drop down. Unable to select item in drop down list due to the html code. Please check my next points. point 1 reference image

  2. the below is the html code, where xpath/inspect element is showing for the drop down menu point 2 reference image

  3. But actual data of that html is in Jquery which is below the html code. How to do selenium automation to select from the list in this situation.

Jquery code:

kendo.syncReady(function(){jQuery("#Type").kendoDropDownList({"dataTextField":"Name","dataValueField":"Id","optionLabel":"---Select Asset---","dataSource":[{"Id":1,"Name":"oil and Gas","Description":null},{"Id":2,"Name":"Upstream","Description":null},{"Id":3,"Name":"Downstream","Description":null}

Aucun commentaire:

Enregistrer un commentaire