samedi 28 février 2015

double click using protractor worked fine in chrome but not working in firefox

Below is the code snippet which i used for double clicking the element which worked fine in chrome browser but its not working in firefox.



browser.actions().doubleClick(element(by.repeater('row in renderedRows').row(0))).perform();


Below is the HTML Snippet:



<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()">`


My scenario is:


We have ng-grid which has many row i need to double click on a row, which worked fine as expected, but when the same tescase ran in firefox identified the row but didnt double click on the row.


Aucun commentaire:

Enregistrer un commentaire