The error The element that matches the specified selector is not visible. occurs when trying to click elements that relate to the In Place Editor. The error occurs sporadically and can affect different elements at different times. Occasionally the error does not occur at all and the test will pass.
So far, affected elements (defined in pages/people.js) have included:
PeoplePage.auth.panelsCustomizeButton
PeoplePage.auth.viewPanesLink
PeoplePage.auth.panelsSaveButton
PeoplePage.auth.pp7Link (might have to ignore this one for troubleshooting since it only exists locally on my machine. It was attempting to click the In Place Editor ViewPanesLink for the PP7 view pane.)
PeoplePage.auth.finishButton may also be a source of the error since although the error points to PeoplePage.auto.panelsSaveButton, the errors occurs right after PeoplePage.auth.finishButton click action.
What have we tried so far
Unsuccessful Attempts at Fixing
using visibilityCheck on the Selectors for the affected elements
using --selector-timeout 10000 or --assertion-timeout 10000 on the command line
separating each .click into a separate line (with its own await)
adding hover before the click
Adding a .wait(100) to all clicks that relate to the In Place Editor (this worked for Ben, but not Miranda)
Successful workarounds
Adding a .wait(500) to all clicks that relate to the In Place Editor (worked for Miranda)
Adding a .wait(200) to all clicks that relate to the In Place Editor (worked for Miranda)
Slowing down the test speed to 0.5 speed
Note: none of these are great workarounds, particularly if one time works for one person and another time doesn't.
The error
The element that matches the specified selector is not visible.
occurs when trying to click elements that relate to the In Place Editor. The error occurs sporadically and can affect different elements at different times. Occasionally the error does not occur at all and the test will pass.So far, affected elements (defined in pages/people.js) have included:
PeoplePage.auth.finishButton may also be a source of the error since although the error points to PeoplePage.auto.panelsSaveButton, the errors occurs right after PeoplePage.auth.finishButton click action.
What have we tried so far
Unsuccessful Attempts at Fixing
Successful workarounds
Note: none of these are great workarounds, particularly if one time works for one person and another time doesn't.
Resources
Sample Errors