Re: Find and Click on a specific window

47 views
Skip to first unread message
Message has been deleted

Parthiban M

unread,
Aug 2, 2018, 6:54:20 AM8/2/18
to TestStack.White
You can get List of windows from this code " List<TestStack.White.UIItems.WindowItems.Window> windows = application.GetWindows();" and get a specific window from list.

On Thursday, August 2, 2018 at 2:19:54 PM UTC+5:30, Macra Alexandru wrote:
Hello,

How can I find a specific window from my app and click it.
For example:I open the app,and I have a main window,I can create another window beside my main window.How can I access that new window that i created,I used UIVerify but i can't use any of the specific atributes that ware finded for this window that I want to select.

Thank you!


Message has been deleted

Parthiban M

unread,
Aug 2, 2018, 7:26:24 AM8/2/18
to TestStack.White
You can use the index to access specific window if you don't have any attributes.

On Thursday, August 2, 2018 at 4:36:23 PM UTC+5:30, Macra Alexandru wrote:

With this list i can't use what window  I want.
I need to find that window and be able to do stuff with it.
For example I opened my application,in menu bar i can create other window,Example(Car), I want to access that window and i can't becase fro UIVerify I don't have any specifications like automationId or classId.
Message has been deleted

Parthiban M

unread,
Aug 2, 2018, 7:38:44 AM8/2/18
to TestStack.White
If you are getting the list of windows you can use the index in list rite. If possible add the watch on list and share screenshot 

On Thursday, August 2, 2018 at 5:05:05 PM UTC+5:30, Macra Alexandru wrote:
Can t access wusing index
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages