mherrmann/helium

Question: How to wait for a div to be fully populated.. or a dynamic wait that waits for a number of children

Closed this issue · 1 comments

Hi I have a question:

I am trying to write a script logging performance
In this particular case I have a div and I expect 2 images inside.
The images have random id and name.
So the only thing I can wait for is the number of child images for the div.

I have tried:
...
wait_until(S(" xpath-expression ").exists)
imgs = find_all(S(" xpath-expression/*/img "))
...

But this doesn't work.
I want to wait for the div to be fully populated with children
How can I do that?

this issue can be closed