我有一个 Web 应用程序,在该应用程序中,当我们将鼠标移到该应用程序上时,顶部菜单会打开(我不想单击该顶部菜单,因为单击该菜单会将页面重定向到另一个页面)。 将鼠标悬停在它上面会打开一个菜单列表,我将能够选择菜单项,但不能将鼠标悬停在顶部菜单上以便出现下拉菜单列表。
fire_event("onmouseover") is not working, it is only flashing that menu(element) but not opening the drop down menu list.
谁能给我解决方案,请问如何将鼠标悬停在任何 HTML 元素上。
最佳答案
嗯,有#hover
方法:
browser.element(:how => what).hover
关于Watir- 如何将鼠标悬停在任何 HTML 元素上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12315889/