# Device level operations

Mouse and Keyboard classes provide methods that enable you to send a variety of mouse and keyboard events to your application.

For example, you can use these methods to move the mouse to a particular coordinate and then perform a DoubleClick. Or you can use a regular test object method to bring a particular object into focus on your application, and then use a Keyboard.PressKey method to send the keyboard scan code for the Enter key.

Keep in mind that unlike the FireEvent and SendKeys methods, the Mouse and Keyboard classes work at the device level and not within the context of a test object. You can use them for any technology, but they rely on coordinates relative to the screen, which can be tricky to maintain over time.

See also:

- .NET code sample: Send keystrokes to the AUT
- Java code sample: Send keystrokes to the AUT (Windows only)

https://admhelp.microfocus.com LeanFT 8942
Tips to improve your search results...TOC Lean Functional Testing Help Center LeanFT Help Center 14.50 - 14.53 All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version:(Undefined variable: _rscC_Basic_Variables.FloatingTocShow)