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

Should click visible link elements #35

Closed
sswaroopgupta opened this issue Jul 10, 2018 · 1 comment
Closed

Should click visible link elements #35

sswaroopgupta opened this issue Jul 10, 2018 · 1 comment
Assignees

Comments

@sswaroopgupta
Copy link
Contributor

sswaroopgupta commented Jul 10, 2018

Actual behavior
Tries to click a hidden anchor element

Steps to replicate

  • Create a directory test
    git clone https://github.com/getgauge/taiko.git
  • Checkout branch taiko-cri
    git checkout taiko-cri
  • install taiko
    npm install -g
  • Create a testDirectory
    Add file visibleLinks.js
const { browser, openBrowser, goto, click, link, listItem, title } = require('taiko');
(async () => {
    try {
        await openBrowser();
        await goto("https://gauge.org/");
        await click("Plugins",{waitForNavigation:true});
        await click(listItem("Reports"));
        await click(link("Read more"),{waitForNavigation:true});
    } catch (e) {
        console.error(e);
    } finally {
        if (browser()) {
            closeBrowser();
        }
    }
})();
  • run this taiko visibleLinks.js

Times out - cannot find element

Version

Version: 0.0.9 (HeadlessChrome/69.0.3452.0)

Blocks #29

@NivedhaSenthil
Copy link
Member

Fix done in commit

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

No branches or pull requests

3 participants