I think your selector doesn't take any inputs.
test this :

$("html") << Keys.chord(Keys.CONTROL,'m')





On Tuesday, March 5, 2019 at 3:50:54 AM UTC-5, [email protected] wrote:
>
> hi,
>
> could please someone help me?
>
> how can I use shortcuts like "CTRL+m" on webpages?
>
> I tried
>
> 1: $('div.neo-layout') << Keys.chord(Keys.CONTROL, "m")
>  
> 2: 
> driver.findElement(By.cssSelector('div.neo-layout')).sendKeys((Keys.CONTROL 
> + "m"))
>
> 3: WebElement element = driver.findElement(By.cssSelector('div.neo-layout'
> ));
>
> new Actions(driver).moveToElement(element).sendKeys(Keys.CONTROL + 
> "m").perform();
>
>
> but nothing works?
>
> the shortcut "CTRL+m" does not depend on any page element, it should help 
> to show a menu.
>
> thank you for any help in advance!
> Roland
>
>

-- 
You received this message because you are subscribed to the Google Groups "Geb 
User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/geb-user/23cb1d83-0f8f-4ba0-aa69-846b000f7c34%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to