Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/430.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何使用表格而不是使用量角器的中继器获取网格上的寄存器数?_Javascript_Protractor - Fatal编程技术网

Javascript 如何使用表格而不是使用量角器的中继器获取网格上的寄存器数?

Javascript 如何使用表格而不是使用量角器的中继器获取网格上的寄存器数?,javascript,protractor,Javascript,Protractor,我有一个网格,上面有5个元素。我要去旅行。我需要得到我的网格中项目的总数,但它是使用对象。我怎么做 我不懂HTML,它是使用对象吗? 我不知道怎么做 **部分HTML:** <div class="ui-datatable-tablewrapper"> <table> <thead> <!--template bindings={

我有一个网格,上面有5个元素。我要去旅行。我需要得到我的网格中项目的总数,但它是使用对象。我怎么做

我不懂HTML,它是使用对象吗? 我不知道怎么做

**部分HTML:**

<div class="ui-datatable-tablewrapper">
                <table>
                    <thead>
                        <!--template bindings={
  "ng-reflect-ng-if": "true"
}--><tr class="ui-state-default">
                            <!--template bindings={
  "ng-reflect-ng-for-of": "[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]"
}--><th ng-reflect-raw-class="[object Object]" class="ui-state-default ui-unselectable-text" draggable="false" style="display: table-cell;">
                                <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                <!--template bindings={
  "ng-reflect-ng-if": "true"
}--><span class="ui-column-title">Tipo de Norma</span>
                                <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                            </th><th ng-reflect-raw-class="[object Object]" class="ui-state-default ui-unselectable-text" draggable="false" style="display: table-cell;">
                                <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                <!--template bindings={
  "ng-reflect-ng-if": "true"
}--><span class="ui-column-title">Número</span>
                                <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                            </th><th ng-reflect-raw-class="[object Object]" class="ui-state-default ui-unselectable-text" draggable="false" style="display: table-cell;">
                                <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                <!--template bindings={
  "ng-reflect-ng-if": "true"
}--><span class="ui-column-title">Ano</span>
                                <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                            </th><th ng-reflect-raw-class="[object Object]" class="ui-state-default ui-unselectable-text" draggable="false" style="display: table-cell;">
                                <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                <!--template bindings={
  "ng-reflect-ng-if": "true"
}--><span class="ui-column-title">Descrição</span>
                                <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                            </th><th ng-reflect-raw-class="[object Object]" class="ui-state-default ui-unselectable-text" draggable="false" style="display: table-cell;">
                                <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                <!--template bindings={
  "ng-reflect-ng-if": "true"
}--><span class="ui-column-title">Status</span>
                                <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                            </th><th ng-reflect-raw-class="[object Object]" class="ui-state-default ui-unselectable-text" draggable="false" style="display: table-cell;">
                                <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                <!--template bindings={
  "ng-reflect-ng-if": "true"
}--><span class="ui-column-title">Data de Publicação</span>
                                <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                            </th><th ng-reflect-raw-class="[object Object]" class="ui-state-default ui-unselectable-text" draggable="false" style="display: table-cell;">
                                <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                <!--template bindings={
  "ng-reflect-ng-if": "true"
}--><span class="ui-column-title">Ativo</span>
                                <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                            </th><th ng-reflect-raw-class="[object Object]" class="kebab-column ui-state-default ui-unselectable-text" ng-reflect-initial-classes="kebab-column" draggable="false" style="display: table-cell;">
                                <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                <!--template bindings={
  "ng-reflect-ng-if": "true"
}--><span class="ui-column-title"></span>
                                <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                            </th>
                        </tr>
                        <!--template bindings={
  "ng-reflect-ng-for-of": null
}-->
                    </thead>
                    <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                    <tbody class="ui-datatable-data ui-widget-content">
                        <!--template bindings={
  "ng-reflect-ng-for-of": "[object Object],[object Object],[object Object],[object Object],[object Object]"
}-->
                            <tr class="ui-widget-content ui-datatable-even" ng-reflect-raw-class="[object Object]" ng-reflect-initial-classes="ui-widget-content">
                                <!--template bindings={
  "ng-reflect-ng-for-of": "[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]"
}--><td ng-reflect-raw-class="[object Object]" style="display: table-cell;">
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "true"
}--><span class="ui-cell-data">Lei</span>
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                                </td><td ng-reflect-raw-class="[object Object]" style="display: table-cell;">
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "true"
}--><span class="ui-cell-data">1800</span>
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                                </td><td ng-reflect-raw-class="[object Object]" style="display: table-cell;">
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "true"
}--><span class="ui-cell-data">1800</span>
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                                </td><td ng-reflect-raw-class="[object Object]" style="display: table-cell;">
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "true"
}--><span class="ui-cell-data">Teste para ver se norma esta desativada</span>
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                                </td><td ng-reflect-raw-class="[object Object]" style="display: table-cell;">
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "true"
}--><span class="ui-cell-data">Revogado</span>
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                                </td><td ng-reflect-raw-class="[object Object]" style="display: table-cell;">
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "true"
}--><span class="ui-cell-data">01/08/2016</span>
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                                </td><td ng-reflect-raw-class="[object Object]" style="display: table-cell;">
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "true"
}--><span class="ui-cell-data">Inativo</span>
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                                </td><td ng-reflect-raw-class="[object Object]" class="kebab-column" ng-reflect-initial-classes="kebab-column" style="display: table-cell;">
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "[object Object]"
}--><span class="ui-cell-data">
                                        <p-columntemplateloader ng-reflect-column="[object Object]" ng-reflect-row-data="[object Object]" ng-reflect-row-index="0"></p-columntemplateloader>

        <!--template bindings={
  "ng-reflect-ng-if": "true"
}--><button class="btn btn-flat btn-no-text btn-kebab-view">
          <i class="zmdi zmdi-more-vert"></i>
        </button>

        <!--template bindings={
  "ng-reflect-ng-if": null
}-->


                                    </span>
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                                </td>
                            </tr>
                            <!--template bindings={
  "ng-reflect-ng-if": null
}-->

                            <tr class="ui-widget-content ui-datatable-odd" ng-reflect-raw-class="[object Object]" ng-reflect-initial-classes="ui-widget-content">
                                <!--template bindings={
  "ng-reflect-ng-for-of": "[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]"
}--><td ng-reflect-raw-class="[object Object]" style="display: table-cell;">
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "true"
}--><span class="ui-cell-data">Resolução</span>
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                                </td><td ng-reflect-raw-class="[object Object]" style="display: table-cell;">
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "true"
}--><span class="ui-cell-data">333</span>
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                                </td><td ng-reflect-raw-class="[object Object]" style="display: table-cell;">
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "true"
}--><span class="ui-cell-data">2011</span>
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                                </td><td ng-reflect-raw-class="[object Object]" style="display: table-cell;">
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "true"
}--><span class="ui-cell-data">teste</span>
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                                </td><td ng-reflect-raw-class="[object Object]" style="display: table-cell;">
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "true"
}--><span class="ui-cell-data">Revogado</span>
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": null
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->
                                    <!--template bindings={
  "ng-reflect-ng-if": "false"
}-->

诺玛提波酒店
努梅罗
阿诺
描述
地位
公共数据
爱及屋
雷
1800
1800
测试是否正常
仇恨
01/08/2016
Inativo
Resolução
333
2011
睾丸
            </div>