Multi-select buttons in Selenium(Python) -
as part of automation testing, i'm trying figure out best way access multi-select button in company website. button not design in popular way , causes me problems using select library. here how looks like:
<div class="select-options options-overflow drop-select-link" style="position: absolute; top: 373px; left: 492px; width: 53px;"> <div class="drop-holder"> <div class="drop-list" style="height: 100px; overflow-x: hidden; overflow-y: auto;"> <ul> <li class="jcfcalc" rel="0"> <a href="#"> <span>usd</span> </a> </li> <li class="option-even jcfcalc" rel="1"> <a href="#"> <span>eur</span> </a> </li> </ul> </div> </div> </div>
what see here multi-select button displayed different kind of currencies. want able choose currencies in wise way - select library. however, select library doesn't fit code.
is there library i'm not aware of? or have xpaths?
select()
couldn't used buttons. any buttons! used select
/option
elements only!
in case can use link text select required element (which link, not button) as
driver.find_element_by_link_text("eur") driver.find_element_by_link_text("usd")
Comments
Post a Comment