Problem with LabledTextLocator

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

Problem with LabledTextLocator

Postby scshah » Tue Mar 18, 2008 10:42 am

Hi,

I want to fetch item which is after some lable. e.g (p1 p2(value of p1)).. so here p1 is label and i want to pick up p2.My hierarchy is like
[GSectionGroup {}<HC|31670136>]->(invisible)
[Section {}<HC|6025385>]->(invisible)
[Twistie {}<HC|27586818>]->(invisible)
[Label {abc}<HC|30074427>]->(invisible)
[LayoutComposite {}<HC|30493749>]->(invisible)
[GPane {}<HC|31603947>]->(invisible)
[GSectionGroup {}<HC|885481>]->(invisible)
[GPropertyGroup {}<HC|17675514>]->(invisible)
[Label {p1}<HC|32237825>]->(invisible)
[Text {}<HC|17712048>]->(invisible)

so as i mentioned i want to pick value of text(p2)..I am using this
IWidgetLocator[] Items= ui.findAll(new LabeledTextLocator("p1")); but it is not giving anything to me.

so what am I doing wrong here?

Thanks
scshah
 
Posts: 19
Joined: Fri Jan 11, 2008 3:52 pm

Re: Problem with LabledTextLocator

Postby Phil Quitslund » Thu Mar 20, 2008 8:09 am

It looks like the text widget is not visible... Is that right? Is it in a section that is collapsed?
--
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Moderator
 
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am

Re: Problem with LabledTextLocator

Postby scshah » Thu Mar 20, 2008 9:40 am

No. Text widget is visible. as per I told you before in my section locator this is the same thing. Even if in print widgets it shows me invisible but actually when i run it, I can see p2 there.Also the report I am verifying, there is no exapnded or collapsed part.
scshah
 
Posts: 19
Joined: Fri Jan 11, 2008 3:52 pm

Re: Problem with LabledTextLocator

Postby Phil Quitslund » Fri Mar 21, 2008 9:05 am

The short answer is that this should work.... Could you send a support request?:

wintest-support@instantiations.com

We'll work on a local repro and track the case there.

Thanks!
--
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Moderator
 
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am


Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest