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.
findElements() will always wait for the parent, so I don't think we should also be waiting for children. We should change the getRawWebElement() call to instead invoke the web driver wrapper.
click() is independent of a parent and has a wait call in the scrollIntoView() script. We should change the getRawWebElement() call to instead invoke the web driver wrapper.
Repro
Invoke a findElements() call from a parent element
Observe how the parent element first is waited for, then all children are waited for
Bug
An excess of
waitUntilDisplayed()
calls duringfindElements()
andclick()
are being invoked. This is slowing overall performance.Expected
Fundamentally, we only want one
waitUntilDisplayed()
called when interacting with an element.findElements()
will always wait for the parent, so I don't think we should also be waiting for children. We should change thegetRawWebElement()
call to instead invoke the web driver wrapper.click()
is independent of a parent and has a wait call in thescrollIntoView()
script. We should change thegetRawWebElement()
call to instead invoke the web driver wrapper.Repro
findElements()
call from a parent element