D
D
demegorych2022-03-02 14:08:52
Python
demegorych, 2022-03-02 14:08:52

How to enter data in a new dialog using pywinauto?

Good afternoon,
I am automating one application, initially there is this screen:
621f4f27d6802928025026.png

from pywinauto.application import Application

app = Application(backend="uia").start('sda/Steam Desktop Authenticator.exe')
dlg_spec = app.Steam_Desktop_Authenticator
actionable_dlg = dlg_spec.wait('visible')

app.Steam_Desktop_Authenticator.SetupNewAccount.click()

I successfully click on the button, but now a new dialog box appears, which I can’t access in any way:
621f4fce886f8191597187.png
I tried in different ways, for example, as below, but I can’t enter the username at all. or click on the Login button:
dlg_spec = app.Steam_Login
actionable_dlg = dlg_spec.wait('visible')
dlg_spec.set_focus()
app.Steam_Login.Username.type_keys("login")


Can you please tell me what is wrong and what methods should be used?

UPD: no solution found yet

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question