Issues retrieving TreeItem text with regex

WindowTester allows you to easily create and run unit tests for every GUI they build. It can also be used to generate system level tests.

Moderators: gnebling, Eric Clayberg, Dan Rubel, keertip, Phil Quitslund

Issues retrieving TreeItem text with regex

Postby leachj » Thu May 05, 2011 1:58 pm

I'm trying to retrieve a TreeItem title that is dynamic, I locate it using regular expressions. Currently I have this, but I need to suppress warnings and was wondering if there is any other way. I will eventually be using the text to do some verification.

Code: Select all

IWidgetLocator ref = ui.find(new TreeItemLocator(".+EXAM-.+));
String examTitle = ((TreeItemReference) ref).getText());


Any guidance would be appreciated.
Posts: 1
Joined: Thu May 05, 2011 12:10 pm

Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest