I'm having difficulty in sending a Shift key command followed immediately by tilde (~). I've attempted various examples, and here's one that I'm currently working on. I am testing the following scenario - selecting a specific image, then sending shift ~ -> entering a particular number using SHIFT 3. SHIFT 3 is an instantaneous action, there can't be any delay between those two. The same goes for SHIFT ~.
browser.actions().mouseMove(imagePicked).perform();
await imagePicked.click();
await browser.actions().sendKeys(((protractor.Key.SHIFT,"~"))).perform();
await browser.actions().sendKeys(barcode).perform();
await browser.actions().sendKeys(((protractor.Key.SHIFT,"3"))).perform();
Thank you in advance.