【发布时间】:2015-12-15 17:19:26
【问题描述】:
我创建了一个简单的 div 并在 mousedown 和 mouseup 事件上更改其背景颜色。然后我尝试在 firefox 中使用 Selenium IDE 进行测试。问题是,它没有记录任何鼠标操作。这是 jsfiddle Demo。有什么建议可以解决 Selenium IDE 中的这个问题吗?
$("#demo").mousedown(function () {
$("#demo").css('background-color', 'yellow');
}).mouseup(function () {
$("#demo").css('background-color', 'blue');
});
<div id="demo" style="width:200px;height:100px;background-color:red;"></div>
即使元素直接添加到 DOM 中,Selenium IDE 也无法正常工作。
【问题讨论】:
标签: jquery firefox selenium selenium-ide