Nightwatch: browser.Keys.COMMAND doesn't work

Created on 13 Feb 2015  路  6Comments  路  Source: nightwatchjs/nightwatch

browser.Keys.COMMAND does not work. Specifically:

.keys(client.Keys.COMMAND)
.keys('v')

This works:

.keys(client.Keys.SHIFT)
.keys('v')

Most helpful comment

@beatfactor I'm getting the same issue.
This works for Chrome but not on Firefox.

            .keys([client.Keys.COMMAND], () => {
                component.click('.infinite-tree-item:nth-of-type(1)');
                component.click('.infinite-tree-item:nth-of-type(2)');
            });

tried this as well ->

            .sendKeys('#myDiv', [client.Keys.COMMAND], () => {
                component.click('.infinite-tree-item:nth-of-type(1)');
                component.click('.infinite-tree-item:nth-of-type(2)');
            });

Not working.

All 6 comments

Would you mind providing a more detailed example ?

.click('.zero-clipboard') //This clicks a link that triggers the ZeroClipboard copying
.click('.input-form') //This clicks on an input
.pause(1000)
.keys(client.Keys.COMMAND)
.keys('v')

I don't think this is a Nightwatch issue.

@beatfactor I'm getting the same issue.
This works for Chrome but not on Firefox.

            .keys([client.Keys.COMMAND], () => {
                component.click('.infinite-tree-item:nth-of-type(1)');
                component.click('.infinite-tree-item:nth-of-type(2)');
            });

tried this as well ->

            .sendKeys('#myDiv', [client.Keys.COMMAND], () => {
                component.click('.infinite-tree-item:nth-of-type(1)');
                component.click('.infinite-tree-item:nth-of-type(2)');
            });

Not working.

Here we are nearly 3 years later and this is still an issue. Any workaround?

@kretschmannj would you mind opening a new issue and also, if possible, loose the tone? thanks.

Was this page helpful?
0 / 5 - 0 ratings