select an item from an open window

45 views
Skip to first unread message

Macra Alexandru

unread,
Jun 7, 2018, 6:14:23 AM6/7/18
to TestStack.White
Helo,

How can i select an item from an open window from my application,I open my main window,then I click a button that pops up another windows and I must select a file and open it.I need help on the selecting part.
Thank you!

Mike Hetzer

unread,
Jun 7, 2018, 5:00:24 PM6/7/18
to TestStack.White
Rather than using UI automation to navigate a file explorer - you should typically just send the full path of the file you intend to open.
Unless that's not what you are trying to do - then more info is needed.

Gerhard Diedericks

unread,
Jun 8, 2018, 6:47:37 AM6/8/18
to TestStack.White
Is the OpenFileDialog another window? (for 3rd party UI tools it might be different)

Look at this example:



--
You received this message because you are subscribed to the Google Groups "TestStack.White" group.
To unsubscribe from this group and stop receiving emails from it, send an email to teststack_white+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages