How To move physical mouse pointer in selenium and c

0 votes

I am using selenium and c#. I want to move my physical mouse pointer.

Actions action = new Actions(driver);

action.MoveByOffset(500, 500).ContextClick().Build().Perform();

//action.MoveToElement(element).ContextClick().Build().Perform();

My mouse pointer is not moving.

Jun 4, 2018 in Selenium by Martin
• 4,340 points
2,468 views

1 answer to this question.

0 votes

You can't show the mouse pointer moving and performing the task using the Actions Class. You should use Actions class only for emulating complex user gestures and but not for using the Keyboard or Mouse directly. You should use the Robot Class instead.

answered Jun 4, 2018 by Samarpit
• 5,890 points

Related Questions In Selenium

0 votes
1 answer

How to handle IE protected mode zone and zoom level setting in selenium C#

For changing the zoom level you can ...READ MORE

answered Feb 13, 2019 in Selenium by Priyaj
• 58,120 points
2,710 views
+1 vote
1 answer

How to perform mouse hovering in Selenium WebDriver (Java)?

You many not actually be able to ...READ MORE

answered Apr 3, 2018 in Selenium by nsv999
• 5,520 points

edited Apr 4, 2018 by nsv999 8,007 views
0 votes
1 answer

How to set Page Load Timeout using C# and Selenium Webdriver

Check this out C# WebDriver API now contains ...READ MORE

answered Aug 3, 2018 in Selenium by Samarpit
• 5,890 points
4,362 views
0 votes
1 answer

How to install and configure Gecko Driver in Selenium?

Hello Abhishek, follow these steps to install ...READ MORE

answered May 13, 2019 in Selenium by Anvi
• 14,150 points
679 views
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,520 points
5,058 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,010 points
5,801 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,890 points
3,568 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 2, 2020 in Selenium by Sri
• 3,010 points
4,299 views
0 votes
5 answers
0 votes
2 answers

How to open a browser window in full screen using Selenium WebDriver with C#

Hi , we have inbuilt method Maximize(). driver.Manage().Wind ...READ MORE

answered Sep 5, 2020 in Selenium by Sri
• 3,010 points
11,806 views