51Testing软件测试论坛
标题:
selenium鼠标悬停事件失效
[打印本页]
作者:
happy_ymm
时间:
2016-1-19 18:25
标题:
selenium鼠标悬停事件失效
Actions mia_exit = new Actions(driver);
mia_exit.MoveToElement(driver.FindElement(By.CssSelector("i.demo-icon.icon-ellipsis"))).Perform();
loadwait.Until((d) =>
{
return IsElementPresent(By.XPath("//div/ul/li[3]/a/span"));
});
driver.FindElement(By.XPath("//div/ul/li[3]/a/span")).Click();
loadwait.Until((d) =>
{
return IsElementPresent(By.Id("btnLogin"));
});
Actions mia_exit = new Actions(driver);
mia_exit.MoveToElement(driver.FindElement(By.CssSelector("i.demo-icon.icon-ellipsis"))).Perform();
loadwait.Until((d) =>
{
return IsElementPresent(By.XPath("//div/ul/li[3]/a/span"));
});
driver.FindElement(By.XPath("//div/ul/li[3]/a/span")).Click();
loadwait.Until((d) =>
{
return IsElementPresent(By.Id("btnLogin"));
});
[img]file:///C:\Users\MiaYe\AppData\Roaming\Tencent\Users\1257213315\QQ\WinTemp\RichOle\TMH3EG@SQCPM[IP%{I]G_~M.png[/img]
正常鼠标放上去后应该是见图“正常情况”,但是现在执行脚本的时候元素的颜色变了。。但是三个选项没有出现。。到底是为啥呀??
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2