문제

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

도움이 되었습니까?

해결책

within("#1") do
  click_button("create")
end
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top