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

Deprecation Warning: should appear once for a given action #651

Closed
sswaroopgupta opened this issue Jun 25, 2019 · 1 comment
Closed

Deprecation Warning: should appear once for a given action #651

sswaroopgupta opened this issue Jun 25, 2019 · 1 comment
Assignees
Labels

Comments

@sswaroopgupta
Copy link
Contributor

Expected behavior

Deprecation Warning: should appear once for a given action

Actual behavior

Many deprecation warnings appear for navigation

Steps to reproduce

  1. execute the taiko script
const { browser, openBrowser, goto, click,link,image } = require('taiko');

(async () => {
    try {
        await openBrowser({headless:false});
        await goto("https://in.bookmyshow.com/bengaluru");

        await click("Bengaluru",{timeout:6000});
        await write('NCR', into(await inputField({"placeholder":"Search for your city"})));
        await click("NCR");
        await press("Enter")
        await click("View All");
        await click(link("English"),below('Select Language'))
        await click(image(below(link("Now Showing"))))
        await click(link("Book Tickets"))

        await click(link({"class":"__showtime-link"}))
        await click("Accept")

        await click("Select Seats")
        await click(link(toRightOf("D")))

        // await click(link(contains("Pay ")))
        // await click(radioButton(toLeftOf(contains("M-Ticket"))))
    } catch (e) {
        await screenshot()
        console.error(e);
    } finally {
        await closeBrowser();
    }
})();

The deprecation message appears multiple times

 ✔ Browser opened
 ✔ Navigated to URL https://in.bookmyshow.com/bengaluru
DEPRECATION WARNING: timeout option is deprecated, use navigationTimeout instead
DEPRECATION WARNING: timeout option is deprecated, use navigationTimeout instead
DEPRECATION WARNING: timeout option is deprecated, use navigationTimeout instead
DEPRECATION WARNING: timeout option is deprecated, use navigationTimeout instead
DEPRECATION WARNING: timeout option is deprecated, use navigationTimeout instead
DEPRECATION WARNING: timeout option is deprecated, use navigationTimeout instead
DEPRECATION WARNING: timeout option is deprecated, use navigationTimeout instead
DEPRECATION WARNING: timeout option is deprecated, use navigationTimeout instead
DEPRECATION WARNING: timeout option is deprecated, use navigationTimeout instead
DEPRECATION WARNING: timeout option is deprecated, use navigationTimeout instead
DEPRECATION WARNING: timeout option is deprecated, use navigationTimeout instead

Versions

commit - 7a49c17886d51b619dcfa53717fd88518d6499dc
@Debashis9012
Copy link
Contributor

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

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

3 participants