0

I have an issue where I'm trying to automate the movement of the mouse cursor across a webpage in C# using selenium. Is there some way in C# for me to grab the visible on-screen cursor and move it instead of simulating a mouse cursor that moves across the screen? Any help would be appreciated.

user3686124
  • 55
  • 1
  • 11

1 Answers1

0

For IE

var ieOptions = new InternetExplorerOptions {
                        EnablePersistentHover = true
                    };
driver = new InternetExplorerDriver(ieOptions);

For Chrome

ChromeOptions co = new ChromeOptions();
co.AddAdditionalCapability("enablePersistentHover","true");
driver = new ChromeDriver(co);

For FireFox

FirefoxOptions _FirefoxOptions = new FirefoxOptions();
_FirefoxOptions.AddAdditionalCapability("enablePersistentHover", "true");
driver = new FirefoxDriver(_FirefoxOptions);