Closed jimothyhalpert7 closed 4 years ago
Did you use pollUntil or sleeep with findDisplayed{....} ?
pollUntil example -> https://gist.github.com/lawnsea/1da6ab02bd9b0a8f7b3b sleep -> https://theintern.github.io/leadfoot/module-leadfoot_Command.html#sleep findDisplayed -> docs : https://theintern.github.io/leadfoot/module-leadfoot_Command.html#findDisplayed commit/issue : https://github.com/theintern/leadfoot/issues/15
Also this can be helpful. https://mmxgroup.net/category/testing/
You should scroll -> sleep -> findDisplayed ?
@jimothyhalpert7 What do you mean by 'navigate back'?
@jason0x43 by clicking an item we proceed to the details page. To get back to the list, we need to navigate back, away from it. Since we clicked that item just before, it is now visible.
Try moveMouseTo
instead of click
. It will also scroll, but without causing an action.
Closing due to inactivity, and because this seems to be working
We have a growing list, and we want to get the total number of items in it.
Only a portion of the items are rendered, and you have to scroll to the end of it to load more. Looking for a way to load all the items, and then get the total number. We tried
findDisplayed
on the last list item. It finds the item, but it doesn't scroll that item into view, so growing isn't triggered. Addingclick()
does scroll it into view and triggers growing, but then we have to navigate back.Looking for advice for a cleaner solution. Thanks.