pywinTest.py 297 B

1234567
  1. from pywinauto.application import Application
  2. app = Application().start("notepad.exe")
  3. app.UntitledNotepad.TypeKeys("%FadfojhuaifhasidfhsiudX")
  4. app.UntitledNotepad.MenuSelect("File->SaveAs")
  5. app.SaveAs.ComboBox5.Select("UTF-8")
  6. app.SaveAs.edit1.SetText("Example-utf8.txt")
  7. app.SaveAs.Save.Click()