Discussion:
[Pywinauto-users] How to open an existing file using pywinauto
Ramachandra Raju
2015-08-17 04:50:15 UTC
Permalink
HI guys,

I am using pywinauto for automating a windows application.

I want to open a file from my desktop and click Open button.

Can some one help in doing this.

Attached is the screenshot for reference. Thanks in advance.
--
Cheers,
Ramachadra
Vasily V. Ryabov
2015-08-20 09:33:31 UTC
Permalink
Hi Ramachandra,

You can do it so:

app.Open.Edit.SetEditText(r'C:\...<full_path>..\filename.ht')
app.Open.Open.Click()
app.Open.WaitNot('visible') # not required, but nice to make sure the
dialog closed

Best regards,
Vasily.
Post by Ramachandra Raju
HI guys,
I am using pywinauto for automating a windows application.
I want to open a file from my desktop and click Open button.
Can some one help in doing this.
Attached is the screenshot for reference. Thanks in advance.
--
Cheers,
Ramachadra
------------------------------------------------------------------------------
_______________________________________________
Pywinauto-users mailing list
https://lists.sourceforge.net/lists/listinfo/pywinauto-users
Ramachandra Raju
2015-08-20 09:36:14 UTC
Permalink
Thanks Vasily. Thanks guys. This helps me.
Post by Vasily V. Ryabov
Hi Ramachandra,
app.Open.Edit.SetEditText(r'C:\...<full_path>..\filename.ht')
app.Open.Open.Click()
app.Open.WaitNot('visible') # not required, but nice to make sure the
dialog closed
Best regards,
Vasily.
2015-08-17 7:50 GMT+03:00 Ramachandra Raju <
Post by Ramachandra Raju
HI guys,
I am using pywinauto for automating a windows application.
I want to open a file from my desktop and click Open button.
Can some one help in doing this.
Attached is the screenshot for reference. Thanks in advance.
--
Cheers,
Ramachadra
------------------------------------------------------------------------------
_______________________________________________
Pywinauto-users mailing list
https://lists.sourceforge.net/lists/listinfo/pywinauto-users
--
Cheers,
Ramachadra Raju S
Loading...