Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 25 04:04
    codecov[bot] commented #1232
  • Sep 25 03:54
    codecov[bot] commented #1232
  • Sep 25 03:33
    codecov[bot] commented #1232
  • Sep 25 03:32
    codecov[bot] commented #1232
  • Sep 25 03:29
    codecov[bot] commented #1232
  • Sep 25 03:24
    codecov[bot] commented #1232
  • Sep 25 03:22
    codecov[bot] commented #1232
  • Sep 25 03:22
    codecov[bot] commented #1232
  • Sep 25 01:31
    codecov[bot] commented #1232
  • Sep 25 01:30
    codecov[bot] commented #1232
  • Sep 25 01:30
    junkmd synchronize #1232
  • Sep 24 08:17
    codecov[bot] commented #1232
  • Sep 24 08:07
    codecov[bot] commented #1232
  • Sep 24 07:45
    codecov[bot] commented #1232
  • Sep 24 07:43
    codecov[bot] commented #1232
  • Sep 24 07:37
    codecov[bot] commented #1232
  • Sep 24 07:35
    codecov[bot] commented #1232
  • Sep 24 07:35
    codecov[bot] commented #1232
  • Sep 24 07:35
    codecov[bot] commented #1232
  • Sep 24 05:43
    codecov[bot] commented #1232
Vasily Ryabov
@vasily-v-ryabov
Welcome! wait/wait_not should work even faster in current master branch (these fixes will be in coming 0.6.3).
Fabien Lenoir
@flenoir
hi all,
i have an issue with pywinauto when i want to check a check box, it's working well with SWAPY but when i run the code in a python file it's not working
LuffyKing
@LuffyKing
Code please , I think the problem is how u are locating the window and whether u are bringing it to the front after u have located it.
Fabien Lenoir
@flenoir

```from pywinauto.application import Application

app = Application().Start(cmd_line=u'"C:\RhozetDBInstaller\RhozetDB_102_32938.exe" ')
tpooltemplate = app.TPoolTemplate
tpooltemplate.Wait('ready')
tbutton = tpooltemplate[u'&Next >']
tbutton.Click()
tpooltemplate2 = app.TPoolTemplate
tpooltemplate2.Wait('ready')
trzcheckbox = tpooltemplate2.TRzCheckBox
trzcheckbox.Check()
tbutton2 = tpooltemplate2.Button3
tbutton2.Click()
tpooltemplate3 = app.TPoolTemplate
tedit = tpooltemplate3[u'3']
tedit.ClickInput(where='WFSDB')

app.Kill_()```

its on trzcheckbox
i have tried click, check and ckickinput methods
clickinput
LuffyKing
@LuffyKing
Try double click
Fabien Lenoir
@flenoir
ok i will
LuffyKing
@LuffyKing
I think the wait ready might be the issue
It's difficult without having the program
To try to work with
The second wait ready might not see the ready on the program
Either that or double click
Fabien Lenoir
@flenoir
yes this is a professional software for video encoding

i change the code to :smile: from pywinauto.application import Application

app = Application().Start(cmd_line=u'"C:\RhozetDBInstaller\RhozetDB_102_32938.exe" ')
tpooltemplate = app.TPoolTemplate
tpooltemplate.Wait('ready')
tbutton = tpooltemplate[u'&Next >']
tbutton.Click()
tpooltemplate2 = app.TPoolTemplate
trzcheckbox = tpooltemplate2.TRzCheckBox
trzcheckbox.DoubleClick()
tbutton2 = tpooltemplate2.Button3
tbutton2.Click()
tpooltemplate3 = app.TPoolTemplate
tedit = tpooltemplate3[u'3']
tedit.ClickInput(where='WFSDB')

app.Kill_()

but still checkbox can be ticked, ...strange
Fabien Lenoir
@flenoir
finnaly got it workin
trzcheckbox = tpooltemplate2[u'I accept the terms of the End User LicenseButton']
thanks anyway
LuffyKing
@LuffyKing
Remove ready for tooltemplate2 and add a sleep for 5 secs instead
Ya just guessing😂😂
Fabien Lenoir
@flenoir
i also have to fill some data in text field, do you think the folowwing code e will work ? tedit.ClickInput(where='WFSDB')
LuffyKing
@LuffyKing
Typekeys
Allows u to input data
Eg
tedit.TypeKeys("input text")
@flenoir
Madhukar S Holla
@madhukar01
Hey all!
Is there any support by PyWin for Windows applications that have HTML embeddd UI
I've been trying to workaround coded ui but it's really terrible.
Vasily Ryabov
@vasily-v-ryabov
Hi @madhukar01 it depends on the engine used to render HTML embedded UI. To check if it's suitable for pywinauto, use Inspect.exe. The link to download can be found in the Getting Started Guide.
Sorry for delayed replies on the issues. A hot week.
Sripad Sahu
@sripad96_gitlab
hey,
if i use thi line i am getting error
dlg.Project.print_control_identifiers()
error is : raise ElementNotFoundError(kwargs)
pywinauto.findwindows.ElementNotFoundError: {'title_re': '.* Pix4Ddiscovey Non - Commercial', 'backend': 'uia', 'process': 2944}
any suggestions???
i am working on a project to automate a thirdparty app made on qt
but unable to use : dlg.File_tab.click(); dlg.child_window(title='Open', control_type='MenuItem', found_index=0).invoke(); etc like commands
any suggestions on where i might be going wrong or how to automate a 3rd party app made from QT using pywinauto
Vasily Ryabov
@vasily-v-ryabov
Hi @sripad96_gitlab for the first error it's not clear how dlg was defined. This is important, because it looks like dlg specification produced this error, not dlg.Project. For dlg.Project it would be something like ElementNotFoundError: {'best_match': 'Project', 'backend': 'uia', 'process': 2944}.
Menu item in a drop down submenu has some differences for Qt apps. It is often child of top-level window. Example for WireShark (which is Qt5 app): wireshark.py, line 58. Maybe .select() is more proper action for this menu item.
Sripad Sahu
@sripad96_gitlab
okay.. thank you....
I will look into the examples and try to solve it
one more doubt i had
how to switch tabs ????
Vasily Ryabov
@vasily-v-ryabov
I need to take a look. I have seen many cases for Qt apps where tabs are owner drawn. It might be a problem.
Vasily Ryabov
@vasily-v-ryabov
For WireShark it works this way: app.Wireshark_Capture_Interfaces.child_window(title="Input", control_type="TabItem").click_input() (not obvious, can be improved for Qt5 apps).