kgress / scaffold

A Java based Selenium WebDriver abstraction
MIT License
4 stars 7 forks source link

Too many waitUntilDisplayed() calls when click() invoked #124

Closed kgress closed 2 years ago

kgress commented 2 years ago

Bug

An excess of waitUntilDisplayed() calls during findElements() and click() are being invoked. This is slowing overall performance.

Expected

Fundamentally, we only want one waitUntilDisplayed() called when interacting with an element.

Repro

  1. Invoke a findElements() call from a parent element
  2. Observe how the parent element first is waited for, then all children are waited for
kgress commented 2 years ago

After additional investigation, the additional time is caused by click() invoking too many wait calls.