Ой-ли?У селениума "курсор мыши есть", но он "невидимый".
И он не двигается, перемещаясь с одного элемента страницы на другой.
html:<html> <head></head> <body> <div style='height:100px;width:100px;border-style:solid;border-width:1px' onmouseover='this.style.color="red"'>hello</div> <input type='button' value='PushMe'/> </body> </html>code:WebDriver driver = new FirefoxDriver(); driver.get("file://///alex/temp/test1.html"); System.out.println(driver.findElement(By.xpath("//div")).getAttribute("style")); driver.findElement(By.xpath("//input")).click(); System.out.println(driver.findElement(By.xpath("//div")).getAttribute("style")); driver.quit();output:height: 100px; width: 100px; border-style: solid; border-width: 1px; height: 100px; width: 100px; border-style: solid; border-width: 1px; color: red;
Подскажите, как можно избежать проблемы возникшей в моем случае с выпадающем меню.