question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OpenQA.Selenium.WebDriverException: Access is denied when Mouse.MouseMove

See original GitHub issue

Hi, 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, Dictionary2 parameters) at OpenQA.Selenium.Appium.AppiumDriver1.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:open
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
naeemakramcommented, Dec 24, 2019

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.

0reactions
alex1yaremchukcommented, Dec 19, 2019

Our admins say that any auto-login is unsafe. Is there some resource about security of using interactive agents (whatever it is)?

Read more comments on GitHub >

github_iconTop Results From Across the Web

org.openqa.selenium.WebDriverException: Permission ...
As per the documentation in Error: Permission denied to access property "x" this error is observed if your program attempts to access an...
Read more >
Access is Denied Issue thrown at ChromeDriver Initiation ...
On Permissions for ChromeDriver Window > Security tab, make sure Read & Execute box is checked & click OK button; On ChromeDriver Properties ......
Read more >
Use org.openqa.selenium.interactions.PointerInput in JUnit ...
Want to learn how to use PointerInput class in org.openqa.selenium.interactions package for your next Selenium project? LambdaTest Automation Testing ...
Read more >
Automating cookie update using Selenium and Python
How to make it open in eng? org.openqa.selenium.WebDriverException: Permission denied to access property "__eventWrappers1573722857587" · XPath select a child ...
Read more >
"WebDriver Exception: Permission Denied" with Selenium.
I am getting this error because C drive folders are only accessible by the administrator I am guessing (And Firefox is in there)....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found