I would like to move the browser window left or right. I would manually press [WINDOW] + [LeftArrow] (or [RightArrow]) to achieve this.
I read this one, but it is for Java (see comments) , but I cannot find a way to press the Windows key when using C #.
My best option:
driver.Manage().Window.Position = new Point(x-coord, y-coord);
driver.Manage().Window.Size = new Size(myWidth,myHeight);
but it seems a little strange, and I'm sure there is a better way.
I also tried:
Actions action = new Actions(driver);
action.SendKeys(Keys. )
Then in Keys there is no Windows key ...
source
share