Hi everyone,
I have 2 “Input dialog”.
After I write some text in “Input dialog 1” and click “OK”. Next, “Input dialog 2” showing but not focus in textbox.
Help me focus textbox in “Input dialog 2” after click “OK” in “Input dialog 1”.
Ah, I understand.
Yes, currently the focus isn’t automatic when you use IsPassword.
This will probably change in a future version, but, for now, a workaround can be done using the Parallel activity combining the Input dialog activity and a Set focus activity.InputDialogPasswordTest.xaml (5.2 KB)
Check the selector used in the Set Focus activity and you’ll see that it has a 'idx=2'.
To understand why there’s that 'idx=2' in the selector, open the UiExplorer and inspect the input dialog. You’ll see there’re two “editable text” elements; the first one has the aastate as invisible, offscreen, and the second one has aastate as focusable, protected. The one that you want to focus is the second one.
Thank Mateus_Cruz,
But I don’t "Indicate of screen " in “Set Focus” when Run Automation.
And I have a question: I can have 2 textbox in 1 “Input Dialog”.
If have 2 textbox will solves this problem.
Once again, thank you very much!
You don’t need to use “Indicate on screen” from the activity, just copy the selector string from UiExplorer and paste it on the selector of the activity.
Did you try running the sample I attached? Did it work?
About your question, as far as I know, there’s no direct way to have two textboxes in a single dialog. For some workarounds and discussion about this, visit Create multiple field input dialog - #13 by zeeshan