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

Combination of keys is not working as expected #219

Closed
sswaroopgupta opened this issue Oct 12, 2018 · 1 comment
Closed

Combination of keys is not working as expected #219

sswaroopgupta opened this issue Oct 12, 2018 · 1 comment

Comments

@sswaroopgupta
Copy link
Contributor

sswaroopgupta commented Oct 12, 2018

Expected behavior
The combination of keys should work similar to the manual entry of combination of keys

Actual behavior
Tab and Shift+Tab is not coming back to the same control

Steps to replicate

  • Run the following script
const { openBrowser, goto, press, inputField, focus, write } = require('taiko');

(async () => {
    try {
        await openBrowser({headless:false});
        await goto("cleartrip.com");
        await write("Delhi",inputField({"placeHolder":"Any worldwide city or airport"}));
        await press("Tab");
        await press("Shift","Tab");
        await write("Bengaluru");
    } catch (e) {
        console.error(e);
    } finally {
        await closeBrowser();
    }
})();

Blocks #192
Version

499249fb2a904ee4dc4eb83976d6d1905a3edd07
@sswaroopgupta
Copy link
Contributor Author

The expected syntax is await press(["Shift","Tab"])

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

2 participants