Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
html元素是,当鼠标在元素上移动时p,它的属性style="display:none;" 是可见的。我怎样才能得到pin Watir 的文本?谢谢!
p
style="display:none;"
尝试:
@browser.p(:style, 'display:none;').fire_event 'mouseover @browser.p(:style, 'display:none;').click #change to visible element you want to click
fire_event 'mouseover' 就像你的鼠标悬停在元素上一样