I would like to test the filter function in my angularJS application. In fact, when I click on the filter, the number of search results displayed on the page should decrease. Here is my code:
element(by.id('foundNumber')).getText().then (function(text){console.log(text); })
element(by.repeater('term in facets.uproctype').row(0)).click ()
element(by.id('foundNumber')).getText().then (function(text){console.log(text); })
And here is my console log:
Using the selenium server at http://localhost:4444/wd/hub
6209
6195
....
I do not know how I can compare the theses of two values โโin the wait string, since I cannot use them inside my function. Any help?
Thanks Zied
source
share