Skip to content

Instantly share code, notes, and snippets.

View sf-shivang's full-sized avatar

Shivang Kumar sf-shivang

View GitHub Profile
@sf-shivang
sf-shivang / Automation.py
Created November 29, 2019 13:15
Automation python script for notepad testing, used pywinauto library.
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()