使用量角器双击在chrome中效果良好,但在firefox中不起作用
double click using protractor worked fine in chrome but not working in firefox
下面是我用来双击元素的代码片段,该元素在chrome浏览器中运行良好,但在firefox中不起作用。
browser.actions().doubleClick(element(by.repeater('row in renderedRows').row(0))).perform();
下面是HTML代码段:
<div class="ng-scope ngRow even" ng-row="" ng-class="row.alternatingRowClass()" ng-click="row.toggleSelected($event)" ng-repeat="row in renderedRows" ng-style="rowStyle(row)" style="top: 0px; height: 30px;">
<!-- ngRepeat: col in renderedColumns -->
<div class="ngCell col0 colt0" ng-class="col.colIndex()" ng-repeat="col in renderedColumns" ng-style="{ }" ng-click="showDetail(row.entity)" ng-dblclick="viewBothPanes()">
<div class="ngVerticalBar ngVerticalBarVisible" ng-class="{ ngVerticalBarVisible: !$last }" ng-style="{height: rowHeight}" style="height: 30px;"/>
<div ng-cell="">
<div class="ngCellText ng-scope col0 colt0" ng-class="col.colIndex()">
</div>
</div>
<!-- end ngRepeat: col in renderedColumns -->
<div class="ngCell col1 colt1" ng-class="col.colIndex()" ng-repeat="col in renderedColumns" ng-style="{ }" ng-click="showDetail(row.entity)" ng-dblclick="viewBothPanes()">`
我的场景是:
我们有ng网格,它有很多行,我需要双击一行,正如预期的那样,它运行得很好,但当同一个tescase在firefox中运行时,它识别了行,但没有双击该行。
这很容易与firefox
35和selenium
2.44之间的不兼容问题有关。
当前的解决方法是将firefox
降级到34.0.5,或者,由于selenium
2.45今天发布,从github主分支安装protractor
。
查看更多信息:
- 使用带量角器的Firefox 35会导致错误
相关文章:
- jquery中出现NaN错误.已经尝试过ParseInt,但仍然不起作用
- 我尝试使用我的本地js文件来获取远程IP数据,但它不起作用
- 想制作一个基于URL的音频播放器,但Javascript不起作用
- 调用 http url 有效,但 Https 不起作用
- 尝试验证我的单选按钮,但它不起作用
- area(data)有效,但area不起作用
- 当我尝试在jsFiddle中暂停并播放时,我的代码可以工作,但它不起作用;我的html页面不起作用
- I'我试图用一个按钮随意移动一个CSS元素,我试图使用偏移量,但onlick不起作用
- 正在导入Jquery,但AJAX不起作用
- 我正在尝试一个接一个地播放一个 mp3 文件(一个作为介绍),但它不起作用.我该怎么做
- 我有一个按钮试图运行警报,但它不起作用
- 尝试将 PHP $_POST 变量保存到 javascript 中,但它不起作用
- Rails 4 - 没有JavaScript错误,但JS不起作用
- 跟踪像素应该通过引用页面加载外部网站 - 但它不起作用
- 通过Jquery调用Angular的ng-show,但它不起作用
- 尝试使用 github js api,但它不起作用
- 我已经在全球范围内安装了 slush-phaser-webpack,但它不起作用
- 我在Javascript中做了一个for循环来检查一个数字是否是素数.但它不起作用
- 我想通过js将图片显示在一页中,但onclick不起作用
- 我试图在onclick方法上折叠导航栏,但它不起作用