I am trying to automate typing
R, and entering mstsc. This should open a Remote Desktop Protocol (RDP) window. In the RDP window, I have to enter a host name. All these should be done using UI path.
How can I achieve this?
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It only takes a minute to sign up.Sign up to join this community
You have the option to connect using a set of commands
But if you want to use the UI for this or other Windows related apps, you can try pywinauto. Here is an example from the pywinauto docs:
from pywinauto.application import Application # Run a target application app = Application().start("notepad.exe") # Select a menu item app.UntitledNotepad.menu_select("Help->About Notepad") # Click on a button app.AboutNotepad.OK.click() # Type a text string app.UntitledNotepad.Edit.type_keys("pywinauto Works!", with_spaces = True)