在Protractor中,id未找到元素

时间:2016-05-11 13:23:37

标签: protractor

   <li ng-repeat="menu_group in menu.groups | filter: filterForTablet" hs-css="{selected:isGroupUrl(menu_group.url), opened:isGroupOpened(menu_group.id)}" id="nav-group-Report" class="ng-scope opened selected">
        <div class="table-container with-cells">
            <div class="nav-info" hs-gesture="{handler:openGroup, param:menu_group}">
                <span ng-class="menu_group.icon" class="icon-report"></span>
                <span class="ng-binding">Reports</span>

以下是什么问题? 没有生成错误,但上面代码段中的id找不到该元素:

var report = element(by.id(“nav-group-Report”));

browser.actions()的DoubleClick(报告).perform();

0 个答案:

没有答案