question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TestCafe Banner makes elements appear invisible

See original GitHub issue

Banner makes elements appear invisible

Test cafe banner is covering up elements and as a result, those elements are “not visible”. This can be verified by a test where an element is covered up by the banner and needs to be visible to succeed, here’s an example:

.click(myElementCoveredByBanner)

which then gives the error: “The element that matches the specified selector is not visible.”

Observing the test, I have noticed that the element is scrolled to and visible on the screen, however, the test-cafe banner covers the element completely. By running the test again, wait for the timeout and then by manually scrolling such that the banner partially does not cover the element, fixes the problem.

What is the Current behavior?

The banner when layered over an element makes it “not visible”

What is the Expected behavior?

There either should not be a banner, or the banner should not be making elements “not visible”.

Code that is breaking:
   1) The element that matches the specified selector is not visible.

export async function drilDown() {
 await scrollToBottom()
await t
   .expect(benefitsIconMobileOnly.exists).ok()
    .click(benefitsIconMobileOnly)

  • testcafe version: 1.2.1
  • node.js version: 8.12.0
  • browser name and version: Chrome 75
  • platform and version: macOS 10.13.6

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9

github_iconTop GitHub Comments

4reactions
aleks-procommented, Jun 28, 2019

Hello @AllSidesCreative,

The issue you are facing looks similar to this one. We have fixed it recently. Can you check that the problematic behavior is reproducible on the testcafe@1.3.0-alpha.1 version? If so, please provide us with a link to your Web application or a simple project in which we can reproduce the issue. Also, the code of your test would be very helpful for us.

0reactions
github-actions[bot]commented, Jun 7, 2022

This issue was automatically closed because there was no response to our request for more information from the original author. Currently, we don’t have enough information to take action. Please reach out to us if you find the necessary information and are able to share it. We are also eager to know if you resolved the issue on your own and can share your findings with everyone.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Waiting for element to appear on static button in TestCafe
In your case, #confirmation-button might be an invisible button hidden somewhere in an actual visible element.
Read more >
.filterVisible() | Selector Object | Test API | API | Docs - TestCafe
Returns visible elements. Selector().filterVisible() → Selector. Visibility Criteria.
Read more >
FAQ | TestCafe Studio - DevExpress Documentation
A test fails because TestCafe Studio could not find the required page element.
Read more >
CSS Position Sticky Tutorial With Examples[Complete Guide]
With these values, we make calculations to stick the element as soon as the offset reaches a point. This used to work earlier,...
Read more >
E2E Testing using TestCafe - DEV Community ‍ ‍
lengthy implementation of code? If the above points are exactly of your concern then test-cafe can be your go-to test automation framework for ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found