Frage

I want to select button inside the first div Following is the code using

    <div id="1">
    <button class="button btcls bns" data-dismiss="modal">create</button>
</div>

I used following method to select that button'

    xpath('//btcls').click

But no one is working

War es hilfreich?

Lösung

within("#1") do
  click_button("create")
end
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top