Instead of mouse click
Posted: Tue Dec 08, 2015 10:30 am
Hi,
Am using code module to write my script and when i run my script, I can see that my test run shows me the mouse cursor and clicks on the buttons. But i dont want to do like i want to run my script with my the cursor where the cursor dosent have to move to perform the actions.
my code ex:
Am using the above code where whenever i run this the mouse cursor will move and clicks on the appropriate buttons. How can i write a code where it should use the cursor to perform the actions.
Thankyou.
Am using code module to write my script and when i run my script, I can see that my test run shows me the mouse cursor and clicks on the buttons. But i dont want to do like i want to run my script with my the cursor where the cursor dosent have to move to perform the actions.
my code ex:
Code: Select all
var repo = TestRis_iRepository.Instance;
var username = repo.LogIn.Username;
username.Click();
username.PressKeys("test);
var password = repo.LogIn.Password;
password.Click();
password.PressKeys("test);
var logIn = repo.LogIn.LogIn;
logIn.Click();
Thankyou.