-1

我在量角器中並不完美,但我在一些項目中使用了它。在我目前的測試項目中,我面臨離子手風琴,沒有類別,ID和元素名稱來訪問它們。這裏是低於提到沒有ID,類別和元素名稱的離子手風琴元素

<v-accordion role="tablist" class="vAccordion--default"> 

    <!-- ngRepeat: abt in about.about --><v-pane class="is-expanded" ng-repeat="abt in about.about" expanded="$first" style="background: white none repeat scroll 0% 0%;" ;=""> 
    <v-pane-header tabindex="0" aria-selected="true" role="tab"><div ng-transclude=""> 
     <h4 class="ng-binding" style="margin:15px"> 
     <i class="ion-ios-glasses-outline" style="color:#3498DB; font-size:25px" &nbps;&nbps;&nbps;&nbps;&nbps;&nbps;=""> </i> 
      Vision 
     </h4> 
     <!-- <i class="icon ion-chevron-right icon-accessory"></i> --> 
     <!-- <h2 ng-model ="abt.header"></h2> --> 
    </div></v-pane-header><!-- <v-pane ng-repeat="domtax in domestictax.domestictax" expanded="$first"> --> 



    <v-pane-content style="max-height: none;" role="tabpanel"><div ng-transclude=""> 
    <h5 class="ng-binding" style="margin:15px"> Curabitur et ligula. Ut molestie a, ultricies porta urna. Vestibulum commodo volutpat a, convallis ac, laoreet enim. Phasellus fermentum in, dolor. Pellentesque facilisis. Nulla imperdiet sit amet magna. Vestibulum dapibus, mauris nec malesuada fames ac turpis velit, rhoncus eu, luctus et interdum adipiscing wisi.</h5> 
     <!-- <h2 ng-model ="abt.content"></h2> --> 

     <!-- accordions can be nested :) --> 
     <!-- ngIf: abt.subpanes --> 
    </div></v-pane-content> 
    </v-pane><!-- end ngRepeat: abt in about.about --><v-pane class="" ng-repeat="abt in about.about" expanded="$first" style="background: white none repeat scroll 0% 0%;" ;=""> 
    <!-- <v-pane ng-repeat="domtax in domestictax.domestictax" expanded="$first"> --> 

的阻擊代碼我需要測試是否「Curabitur等ligula ......」是手風琴文本「願景」或圖標點擊這裏顯示的虛擬文本。

回答

0

使用CSS選擇,讀here

基本上選擇器將是by.css('v-accordion[role="tablist"]')