Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Enhancement suggestions for the WithId matcher
Enhancement suggestions for the WithId matcher [message #488943] Wed, 30 September 2009 19:24
Vasanth Velusamy is currently offline Vasanth VelusamyFriend
Messages: 31
Registered: July 2009
Member
(1) org.eclipse.swtbot.swt.finder.matchers.WithId<T> assumes that both
key and value are of type String. But since
org.eclipse.swt.widgets.Widget.getData(String) returns an Object, WithId
should also work with values of type Object.

(2) WithId does not work with Widget.getData() (the version with no
parameters). It only looks for key-value pair type data. There should be
a variation of WithId that tries to match with the value in
Widget.getData().
WithId.withId(String) currently uses the default key
(SWTBotPreferences.DEFAULT_KEY). But I think it is more appropriate that
this variation of the withId() method should use Widget.getData().

If you agree to the proposed changes, I can provide a patch, including
test cases.

- Vasanth
Previous Topic:Application error on rcp using headless testing framework
Next Topic:Get imagefilename with swtbot
Goto Forum:
  


Current Time: Thu Apr 18 09:54:48 GMT 2024

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

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

Back to the top