ccswbs / testing

Testcafe-based test suite for hjckrrh.
GNU General Public License v3.0
0 stars 1 forks source link

Error "The element that matches the specified selector is not visible" occurs sporadically when clicking elements related to In-Place-Editor #40

Open mmafe opened 7 years ago

mmafe commented 7 years ago

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

  1) - Error in test.before hook -
      The element that matches the specified selector is not visible.

      Browser: Chrome 58.0.3029 / Mac OS X 10.12.5

         49 |       .click(await PeoplePage.auth.panelsCustomizeButton)
         50 |       .click(await PeoplePage.auth.panelsAddToLeft)
         51 |       .click(await PeoplePage.auth.viewPanesLink)
         52 |       .click(await PeoplePage.auth.pp7Link)
         53 |       .click(await PeoplePage.auth.finishButton)
       > 54 |       .click(await PeoplePage.auth.panelsSaveButton)
         55 |       .navigateTo(Env.baseURL);
         56 |
   1) - Error in test.before hook -
      The specified selector does not match any element in the DOM tree.

      Browser: Chrome 58.0.3029 / Mac OS X 10.12.5

         46 |       .setNativeDialogHandler(() => true);
         47 |
         48 |   await t.click(await PeoplePage.auth.panelsCustomizeButton);
         49 |   await t.click(await PeoplePage.auth.panelsAddToLeft);
         50 |   await t.click(await PeoplePage.auth.viewPanesLink);
       > 51 |   await t.click(await PeoplePage.auth.pp7Link);
         52 |   await t.click(await PeoplePage.auth.finishButton);
         53 |   await t.hover(await PeoplePage.auth.panelsSaveButton).click(await PeoplePage.auth.panelsSaveButton);
         54 |   await t.navigateTo(Env.baseURL);
   1) - Error in test.before hook -
      The element that matches the specified selector is not visible.

      Browser: Chrome 58.0.3029 / Mac OS X 10.12.5

         44 |   await t
         45 |       .navigateTo(Env.baseURL).wait(500)
         46 |       .setNativeDialogHandler(() => true)
         47 |       .click(PeoplePage.auth.panelsCustomizeButton)
         48 |       .click(PeoplePage.auth.panelsAddToLeft)
       > 49 |       .click(PeoplePage.auth.viewPanesLink)
         50 |       .click(PeoplePage.auth.pp7Link)
         51 |       .click(PeoplePage.auth.finishButton)
         52 |       .click(PeoplePage.auth.panelsSaveButton)
         53 |       .navigateTo(Env.baseURL)
   1) - Error in test.before hook -
      The element that matches the specified selector is not visible.

      Browser: Chrome 58.0.3029 / Mac OS X 10.12.5

         42 |   await Actions.Login(await t, Env.creds.admin.username, Env.creds.admin.password);
         43 |
         44 |   await t
         45 |       .navigateTo(Env.baseURL)
         46 |       .setNativeDialogHandler(() => true)
       > 47 |       .click(PeoplePage.auth.panelsCustomizeButton)
         48 |       .click(PeoplePage.auth.panelsAddToLeft)
         49 |       .click(PeoplePage.auth.viewPanesLink)
         50 |       .click(PeoplePage.auth.pp7Link)
         51 |       .click(PeoplePage.auth.finishButton)
         52 |       .click(PeoplePage.auth.panelsSaveButton)