waitForElements uses a loop with a sleep(1) to iteratively try and find elements. The sleep is done on every iteration, even the iteration that finds the elements. Therefore waitForElements will always take at least one second. With the submitted patch the sleep is skipped if the element was found, this has very notoriously improved tests run times.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | selenium-wait-for-elements-sleep-2150547.patch | 405 bytes | daniel_hinchliff |
Comments
Comment #1
daniel_hinchliff commentedComment #2
daniel_hinchliff commented