Robot API has few dis-advantages mentioned below:
- Keyword/moved event will only works on current instance of Window. E.g. suppose a code is performing any robot class event, and during the code execution user has moved to some other screen then keyword/mouse event will occur on that screen.
- Most of the methods like mouseMove is screen resolution dependent so there might be a chance that code working on one machine might not work on other.
Read More »
Since, now you aware of basic methods of Robot Class so let’s understand few more complex methods –
Suppose you do not want to use the click method for clicking at web element.
In such cases, you can use mouseMove method of the Robot class.Read More »
import org.openqa.selenium.firefox.FirefoxDriver;Read More »
In certain Selenium Automation Tests, there is a need to control keyboard or mouse to interact with OS windows like Download pop-up, Alerts, Print Pop-ups, etc. or native Operation System applications like Notepad, Skype, Calculator, etc.Read More »