OpenQA.Selenium.WebDriverException: Access is denied when Mouse.MouseMove
See original GitHub issueHi, Help needed!
I used session.Mouse.MouseMove for my simple WinForms test to move mouse to the control which I wasn’t able to locate with ids (inspect displays it outside of the application’s tree, might be a separate question why).
It worked fine as I was running it, but on night run it failed as
Error Message: Test method UiTests.ScenarioCreateNewDb.CreateNewDb threw exception: OpenQA.Selenium.WebDriverException: Access is denied Stack Trace: at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse) at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary
2 parameters) at OpenQA.Selenium.Appium.AppiumDriver
1.Execute(String driverCommandToExecute, Dictionary`2 parameters) at OpenQA.Selenium.Remote.RemoteMouse.MouseMove(ICoordinates where, Int32 offsetX, Int32 offsetY)
Might be it has something to do with the locked state of the PC?
Thanks!
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top GitHub Comments
Windows automation scripts need to interact with the desktop, an active session is a prerequisite since the dawn of times. You will need an active, unlocked machine. There’s no way around it.
Our admins say that any auto-login is unsafe. Is there some resource about security of using interactive agents (whatever it is)?