webdriverio: Unable to simulate Select+All only under OS X
I have tried to simulate Select+All under OS X but without success. Everything works fine under Windows.
The code below works under Windows but not under Mac. The text never gets selected.
var CTRL_CMD = process.platform == 'darwin' ? 'Command' : 'Control';
it('test', function () {
client.keys('some text');
client.keys(CTRL_CMD); // the value here is correct
client.keys('a'); // also tried with uppercase A
client.keys(CTRL_CMD);
});
Update: I also tried using Meta and \uE03D
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 16 (5 by maintainers)
Ahh 5 years later I am trying to simulate Command + A on Mac and it works fine when I run my test on the browser, but when I try to run the same code in a headless browser mode, it does not work! I have been struggling for a few days but still no luck finding any solution to this!