This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pywinauto.application import Application | |
app = Application().start("notepad.exe") | |
app.UntitledNotepad.Edit.type_keys("Hello people, this is sample automation testing python script for testing desktop application ie notepad. If you want to have fun just run this script on your desktop and have goosebumps.", with_spaces =True) | |
app.UntitledNotepad.menu_select("File->SaveAs") | |
app.SaveAs.exit1.set_text("Tst_pywinauto.txt") | |
app.SaveAs.Save.click() | |
app.Tst_pywinauto.close() |