页面有产品,当我将鼠标悬停在图像上时,它会显示产品数量和立即购买按钮。我想在鼠标悬停后点击数量并立即购买按钮。
driver.navigate.to('http://testsite/')
product = driver.find_element(:xpath, "//div[@id='recipes-inspiration-menu']")
submenu = driver.find_element(:xpath, "//li[@class='first first-child children']")
driver.find_element(:xpath, "//a[@title='placed']").click