Open a URL in chrome browser.
Sending key command like Shift and 6 not working. I need to send the keys to chrome browser not to any element.
await browser.url('https://www.amextravel.com/car-searches/')
//Manually press Shift 6 will give you this but via script it is not working
await browser.keys([Key.Shift,'6']);
await browser.pause(1000);
import { Key } from 'webdriverio'
await browser.keys([Key.Shift, '6'])
Output:
[chrome 127.0.6533.120 windows #0-0] TypeError: Cannot read properties of undefined (reading 'Shift')
Expecting below modal dialog: