How to getText of a TableCell?

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

How to getText of a TableCell?

Postby karen » Wed Aug 13, 2008 6:34 am

Please help! I can enter text information into a specific TableCell,
but I struggle to get/read the information in that cell.

This works:
Code: Select all
ui.click(new TableCellLocator(usr, "Full Name"));
ui.enterText("Piet Pompies");


This gives me a WaitTimedOutException:
Code: Select all
assertThat("The values are not equal", new HasTextCondition(new TableCellLocator(usr, "Full Name"), "Piet Pompies"));


This always returns an empty string “” even though there is data in the cell:
Code: Select all
new TableCellLocator(usr, "Full Name").getText(ui);


I am using Eclipse 3.4.0. Please advise me what to do to get the text in a TableCell.
Thank you very much!
karen
 
Posts: 2
Joined: Tue Aug 12, 2008 1:57 am

Re: How to getText of a TableCell?

Postby Phil Quitslund » Wed Aug 13, 2008 8:59 am

Hi Karen,

Thanks for posting this. It looks like you've identified a bug in the TableCellLocator.

Could you kindly send a bug report (the contents of your post will suffice) to:

wintest-support@instantiations.com

This will put the bug in our issue tracking system.

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

Re: How to getText of a TableCell?

Postby karen » Mon Sep 08, 2008 1:41 am

Thank you for fixing the bug! It works now in version 3.5.1 (build 2008.09.05).
karen
 
Posts: 2
Joined: Tue Aug 12, 2008 1:57 am

Re: How to getText of a TableCell?

Postby gnebling » Mon Sep 08, 2008 8:26 am

You're welcome. Thanks for the update.
gnebling
Moderator
 
Posts: 243
Joined: Tue Aug 22, 2006 7:49 am


Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest