Ember dropdown selenium xpath
问题 How to write xpath for the ember dropdown. <ul id="ember-power-select-options-ember2473" class="ember-power-select-options ember-view" aria-controls="ember-power-select-trigger-ember2473" role="listbox"> <li class="ember-power-select-option" aria-selected="false" aria-current="false" data-option-index="0" role="option">Option A Since the ember id changes, how can i write xpath?? 回答1: With xpath: //ul[contains(@id, 'ember-power-select-options-ember')] With css: ul[id*='ember-power-select