How to find a css element on the page if it is display: none?
I'm running automated testing in ruby . I'm trying to write a script that finds id with display:none(visible only in mobile form), and clicks it. Here is my code:
def open_menu
page.find[:css, "a[id='mobile-nav-link']", visible: false].click
end
Aucun commentaire:
Enregistrer un commentaire