I need to press Ctrl+A keys using Selenium WebDriver. Is there any way to do it?
I checked the Selenium libraries and found that Selenium allow
It works for me:
OpenQA.Selenium.Interactions.Actions action = new OpenQA.Selenium.Interactions.Actions(browser); action.KeyDown(OpenQA.Selenium.Keys.Control) .SendKeys("a").KeyUp(OpenQA.Selenium.Keys.Control).Perform();