Webtable - filter and sort pop ups for 11 columns .. all having same class. how to identify and suggest | Selenium Forum
R
Rajyalakshmi Gubbala Posted on 08/12/2020

 

in web table have filter and sorting functionality on 11 columns.

 

if i click on filter icon on one column, a small pop up will comes up and need to select ASC or DSC and filter options there.

 

for all pop ups have similar html code

 

<span _ngcontent-c16="" class="glyphicon glyphicon-arrow-up color-gray" ng-reflect-klass="glyphicon glyphicon-arrow-up c" ng-reflect-ng-class="[object Object]"></span>

 

one pop up opens up at a time if i click on any column filter icon. if i use same xpath for all will that selenium able to identify ? or pls suggest on this case

 

xpath = "//span[@class='glyphicon glyphicon-arrow-up color-gray']"

 

 


A
Ashish Thakur Replied on 08/12/2020

Each colmn should have a different xpath


Related Posts