Skip to main content



      Home
Home » Eclipse Projects » SWTBot » ItemTable selected
ItemTable selected [message #32640] Fri, 17 April 2009 07:02 Go to next message
Eclipse UserFriend
Hello,
How can I to see if a tableItem from a table is selected? I am trying with:

boolean res=bot.table(index).getTableItem(index_option).isActive();

If we print 'res', console prints "false", but index_option is selected.
Options from my table are rows, not checkbox.

Thanks and regards.

Luis Miguel
Re: ItemTable selected [message #33585 is a reply to message #32640] Fri, 24 April 2009 03:46 Go to previous message
Eclipse UserFriend
You can do it by using SWTBotTable#widget.isSelected(int). Use
"UIThreadRunnable#syncExec(Result<Boolean>)" because otherwise you get
InvalidThreadAccessError.

@Ketan: I think we need a SWTBotTable#isSelected(int) method. By the way,
maybe you can generate the public widget methods, so they have not to be
implemented.
Previous Topic:@Test annotations ignored, how to get testcase to use Junit 4 ?
Next Topic:Installation and using SWTBot for testing the Eclipse Plug-in's
Goto Forum:
  


Current Time: Wed Apr 16 02:48:12 EDT 2025

Powered by FUDForum. Page generated in 0.04813 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top