Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsNull control ids in SWTBot
https://www.eclipse.org/forums/index.php/mv/msg/441618/991087/#msg_991087
public class LocationComposite extends Group {
...
}
And I have some controls in it.
When I test my application with SWTBot
I could find all controls in by their IDs
except situation when control belongs to this custom LocationComposite
Within LocationComposite I have for example:
сheckBox = new Button(this, SWT.CHECK);
сheckBox.setData("ID", "сheckBox");
//сheckBox.setData("id", "сheckBox"); also the same result
сheckBox.setToolTipText("tooltip");
And in Tests:
SWTWorkbenchBot bot = new SWTWorkbenchBot();
...
//then find view, contains LocationComposite and in this wiew:
bot.checkBox().click(); //this works!
bot.checkBoxWithTooltip("tooltip"); //this also works!
]]>Rom A2012-12-17T10:36:04-00:00Re: Null control ids in SWTBot
https://www.eclipse.org/forums/index.php/mv/msg/441618/991152/#msg_991152
from "org.eclipse.swtbot.widget.key" to "ID".
So it works now, I think - resolved.]]>Rom A2012-12-17T14:35:23-00:00