好吧,我可以在元素资源管理器中找到一个元素并可以玩它但是当我把它放在我的测试中并运行它时,它永远找不到它。我已经尝试了所有等待更长时间或滚动到底部但没有任何帮助。
甚至可能是这种情况吗?
这就是我的元素 - element.all(by.css(' [game-provider =" NETENT"]'))。get(0)
我还需要做更多的代码吗? 我需要单击此元素。任何帮助都会很好。
HTML CODE
<head></head>
<body class="base not-mobile ng-scope" data-ng-controller="BaseCtrl">
<div class="base-view app-loaded" data-ng-class="cssClass.appState">
<!-- uiView:-->
<div class="ng-scope" data-ui-view="">
<!-- uiView: undefined -->
<ui-view class="ng-scope">
<div class="startPage ng-scope" data-ng-controller="StartPageCtrl">
<gfp-tabs class="ng-isolate-scope" pam-fixed=""></gfp-tabs>
<gfp-application-bar class="ng-isolate-scope"></gfp-application-bar> <gfp-overlay class="ng-isolate-scope"></gfp-overlay> <gfp-content-loader class="ng-isolate-scope" url="http://private-21c39-mrgcms.apiary-mock.com/en-se/pages/start"></gfp-content-loader> <gfp-game-list class="ng-isolate-scope">
<ul class="pure-g">
<!--ngRepeat: game in ::ctrl.games -->
<gfp-game-item class="pure-u-1-2 ng-scope ng-isolate-scope" vineet="jain" game-provider="NETENT" game="{"gameId":"south_park_desktop_netent","name":"South Park","w…":false,"friendlyName":"south-park","gameProvider":"NETENT"}" ng-repeat="game in ::ctrl.games"></gfp-game-item>
<!-- end ngRepeat: game in ::ctrl.games -->
<gfp-game-item class="pure-u-1-2 ng-scope ng-isolate-scope" vineet="jain" game-provider="NETENT" game="{"gameId":"aliens_desktop_netent","name":"Aliens","width":64…lete":false,"friendlyName":"aliens","gameProvider":"NETENT"}" ng-repeat="game in ::ctrl.games"></gfp-game-item>
<!--end ngRepeat: game in ::ctrl.games -->
<gfp-game-item class="pure-u-1-2 ng-scope ng-isolate-scope" vineet="jain" game-provider="MICRO" game="{"gameId":"mermaids_millions_desktop_microgaming","name":"Me…e,"friendlyName":"mermaids-millions","gameProvider":"MICRO"}" ng-repeat="game in ::ctrl.games"></gfp-game-item>
<!--end ngRepeat: game in ::ctrl.games -->
<gfp-game-item class="pure-u-1-2 ng-scope ng-isolate-scope" vineet="jain" game-provider="OGS" game="{"gameId":"easy_slider_desktop_ogs","name":"Easy Slider Ifra…te":false,"friendlyName":"easy_slider","gameProvider":"OGS"}" ng-repeat="game in ::ctrl.games"></gfp-game-item>
<!-- end ngRepeat: game in ::ctrl.games -->
</ul>