“by.repeater(”“)。column(”“)”不适用于自定义的angularjs指令

时间:2015-11-02 15:25:25

标签: angularjs protractor

当我尝试使用以下方式获取客户显示名称时(请参阅下面的页面来源)

by.repeater(“bo.data.vt_query中的vt_query”)。column(“vt_query.display_name”)

结果是没有任何匹配的错误消息。我该怎么办?

<tr ng-repeat="vt_query in bo.data.vt_query" mi-search-results-highlight="" class="ng-scope">
    <td class="col-sm-5 layoutColumn">
        <cg-template id="custCard" cg-template-name="media" class="media ng-scope" cg-template-type="Frame">
            <div class="media">
                <div class="pull-left">
                    <div id="media-object" 
                         mi-search-repeater-row-collapse="" 
                         ng-click="ExpandCollapse()" 
                         class="ng-scope cg-muted-block icon icon-medical-professional icon-1-75x"></div>
                </div>
                <div id="media-body" class="ng-scope media-body">
                    <div class="form-horizontal">
                        <div name="mimicEdit" 
                             class="clearfix " 
                             cg-bind="vt_query.display_name" 
                             cg-key="vt_query/display_name" 
                             cg-link="pres/summary.cdl?customerid=7000042000000177" 
                             cg-link-type="url" 
                             cg-link-protocol="http" 
                             cg-link-entity="vt_query" 
                             cg-label="false" 
                             cg-read-only="true">
                            <span id="control" 
                                  class="cg-link cg-link" 
                                  ng-bind="vt_query.display_name" 
                                  cg-link="pres/summary.cdl?customerid=7000042000000177" 
                                  cg-link-type="url" 
                                  cg-link-protocol="http" 
                                  cg-link-entity="vt_query">Abbas, Syed</span>
                            <!-- ngIf: false -->
                        </div>
                        <div name="mimicEdit" 
                             class="clearfix " 
                             cg-bind="vt_query.main_customer_name" 
                             cg-key="vt_query/main_customer_name" 
                             cg-label="false" 
                             cg-read-only="true">
                            <span id="control" class="" ng-bind="vt_query.main_customer_name"></span>
                            <!-- ngIf: false -->
                        </div>
                        <div name="mimicEdit" 
                             class="clearfix " 
                             cg-bind="vt_query.vc_display_address" 
                             cg-key="vt_query/vc_display_address" 
                             cg-label="false" 
                             cg-read-only="true">
                            <span id="control" class="" ng-bind="vt_query.vc_display_address">2 KTAKA KTAKA BLORE </span>
                            <!-- ngIf: false -->
                        </div>
                    </div>
                </div>
            </div>
        </cg-template>
    </td>
    <td class="col-sm-4 layoutColumn">
        <div name="mimicEdit" 
             class="clearfix " 
             cg-bind="vt_query.specialty" 
             cg-key="vt_query/specialty" 
             cg-label="false" 
             cg-read-only="true">
            <span id="control" class="" ng-bind="vt_query.specialty">Aerospace Medicine</span>
            <!-- ngIf: false -->
        </div>
        <div name="mimicEdit" 
             class="clearfix " 
             cg-bind="vt_query.department_name" 
             cg-key="vt_query/department_name" 
             cg-label="false" 
             cg-read-only="true">
            <span id="control" class="" ng-bind="vt_query.department_name"></span>
            <!-- ngIf: false -->
        </div>
        <div name="mimicEdit" 
             class="clearfix " 
             cg-bind="vt_query.role" 
             cg-key="vt_query/role" 
             cg-label="false" 
             cg-read-only="true">
            <span id="control" class="" ng-bind="vt_query.role"></span>
            <!-- ngIf: false -->
        </div>
    </td>
    <td class="col-sm-3 layoutColumn">
        <div name="mimicEdit" 
             class="clearfix " 
             cg-bind="vt_query.phone_number" 
             cg-key="vt_query/phone_number" 
             cg-label="false" 
             cg-read-only="true">
            <span id="control" class="" ng-bind="vt_query.phone_number"></span>
        </div>
    </td>
</tr>

0 个答案:

没有答案