Bug 526966 - WithId to allow matching default data on widget
Summary: WithId to allow matching default data on widget
Status: RESOLVED FIXED
Alias: None
Product: SWTBot
Classification: Technology
Component: SWTBot (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 2.7.0   Edit
Assignee: Mickael Istria CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-08 01:53 EST by Mickael Istria CLA
Modified: 2017-11-15 02:32 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mickael Istria CLA 2017-11-08 01:53:54 EST
To easily map the typical JFace button, it would be nice to provide a buttonWithData() method, which would resolve buttons with bot.buttonWithData(IDialogConstants.OK_ID).
Comment 1 Mickael Istria CLA 2017-11-08 02:41:28 EST
buttonWithId already covers that, but it seems to miss the case of the default data.
Comment 2 Eclipse Genie CLA 2017-11-08 07:25:55 EST
New Gerrit change created: https://git.eclipse.org/r/111211
Comment 3 Mickael Istria CLA 2017-11-08 07:26:58 EST
(In reply to Eclipse Genie from comment #2)
> New Gerrit change created: https://git.eclipse.org/r/111211

This proposal allows to match the "Next >" button on a wizard dialog with
  bot.buttonWithId(null, Integer.valueOf(IDialogConstants.NEXT_ID))
for example.