Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Finding item in swtbottable fails if item not present in first column.(Item present in table in other than first column is not found and returned false if SWTBotTable.containsItem(final String item) is used.)
icon6.gif  Finding item in swtbottable fails if item not present in first column. [message #1761153] Mon, 08 May 2017 10:03
kunal tayal is currently offline kunal tayalFriend
Messages: 1
Registered: May 2017
Junior Member
I used SWTBotTable.containsItem(final String item) hoping that it will find the item in some row and return me true .But to my surprise it was returning me false even when item is there in the table.

Then i saw SWTBotTable.containsItem(final String item) calls SWTBotTable.indexOf(final String item) api . In this api tableItem.getText().equals(item) is used for all the rows. tableItem.getText() by default returns item for the first column. So rest of the columns are not even searched.

So i think this is the cause of the issue ?
I checked this issue on swtbot 2.6.0 also . It persists there too.

And i would like to contribute for this bug and want to resolve this particular issue.

Let me know if i can do that.

i have filed a bug :
Previous Topic:SWTBot support for Nebula TableCombo?
Next Topic:Eclipse SWTBot generator with Nattable
Goto Forum:

Current Time: Fri Jun 02 11:42:58 GMT 2023

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

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

Back to the top