javascript - How to identify repeater if the ng-repeat value changes -


the ng-repeat tag angular repeater looks this:

ng-repeat="prop in ::$obfus.obfuscated(2, 1) track $index"

(obfus , obfuscated changes obfuscate).

the page has widget panel shows around 10 pieces of information, each piece of information text label value next it. each of tuples repeated element.

the (2, 1) in repeater id problem. it's column identifier within panel. depending on width of browser, panel may choose show 10 pieces of information in 2 columns (i.e. 5 pieces of information in each of 2 columns), or 3 columns (4 pieces of information in 1st column, , 3 pieces of information in next 2 columns).

if use protractor acquire webelements, identify repeater syntax above. , me repeated objects for column. if browser different width , run test again, things broken.

for purpose of these tests, don't care column they're in.

is possible use wildcards or regular expressions when identifying repeater in protractor? i'd of these repeated objects in 1 list of webelements.

i'm sure cobble makes n number of protractor calls, assuming worst case # of columns, catching exceptions when don't exist in smaller widths, , glue them together, etc.... doesn't seem idea.

has encountered this, , there strategy re: how proceed? have thought developers identify repeater in consistent manner, , if column number interesting, put in different tag within webelement, etc, doesn't interfere repeater id.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -