Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting element is covered error even when there is a matching element present that is not covered #652

Closed
sswaroopgupta opened this issue Jun 25, 2019 · 8 comments
Assignees
Labels

Comments

@sswaroopgupta
Copy link
Contributor

Expected behavior

Getting element is covered error even when there is a matching element present that is not covered

Actual behavior

✘ Error: Element matching text "Bengaluru" is covered by other element, run .trace for more info.

Steps to reproduce

  1. open the REPL
> openBrowser()
 ✔ Browser opened
> goto("bookmyshow.com")
 ✔ Navigated to URL http://bookmyshow.com
//Click deny on location popup
//Wait for the cities popup to appear
> click("Bengaluru")
 ✘ Error: Element matching text "Bengaluru" is covered by other element, run `.trace` for more info.

There is an element "Bengaluru" that is not covered

Screenshot 2019-06-26 at 3 22 37 AM

Versions

commit - 7a49c17886d51b619dcfa53717fd88518d6499dc
@Debashis9012
Copy link
Contributor

This issue has been verified and found fixed.
Tested version: 271b55182385ee895e6b3a284d1a4aea1bdda3e0

@supraja-kr
Copy link

I am facing this issue still, even on pulling the latest versions

@Debashis9012
Copy link
Contributor

@supraja-kr May we know which version of taiko you are using?

@CzarScar
Copy link
Contributor

I am also facing this issue. I am using the latest release 1.0.0

@luciferankon
Copy link
Contributor

@CzarScar @supraja-kr with the 1.0.0 version of taiko the script below works perfectly for me.

const { openBrowser, goto, click, closeBrowser } = require('taiko');
(async () => {
    try {
        await openBrowser();
        await goto("bookmyshow.com");
        await click("Bengaluru");
    } catch (error) {
        console.error(error);
    } finally {
        await closeBrowser();
    }
})();

Could you please provide some html and script snippet to replicate this issue?

@advait012
Copy link

@Debashis9012 I am still facing the same issue and Taiko version is 1.0.2.Please help!!

@zabil
Copy link
Member

zabil commented Dec 18, 2019

The fix is not released yet it will only be available in 1.0.3

Sorry, I mean an option to select hidden elements. For your problem please share an example script to replicate the issue.

@sanjeeth-07
Copy link

This was resolved after adding waitFor() before subsequent clicks.
await waitFor(1000)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

9 participants