robot class in selenium code example

Example 1: what is robot class

Robot Class can simulate Keyboard and Mouse Event
Robot Class can help in upload/download of files
when using selenium web driver
Robot Class can easily be integrated with
current automation framework (keyword, data-driven or hybrid)

SOME METHODS=
keyPress():
mousePress():
mouseMove():
keyRelease():
mouseRelease():
robotDelay():

Example 2: disadvantages of robot class in selenium

Keyword/mouse event will only works on
current instance of Window. 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

Tags:

Misc Example