Accessing checkboxes from table [message #1840235] |
Fri, 09 April 2021 07:07 |
Eclipse User |
|
|
|
Hello,
I have attached a picture of an Eclipse wizard for which I'm trying to put in place a SWTBot test.
What I'm trying to do is to select one checkbox from the 'Input' column and one checkbox from the 'Output' column , but I'm struggling with an issue that I believe is a synchronization issue.
I'm using the following code for selecting the checkboxes.
syncExec(new VoidResult() {
public void run() {
Button outputColumnButton = (Button) bot.table(0).widget.getChildren()[bot.table(0).indexOf("OUTPUT_COLUMN_NAME") * 2 + 1];
outputColumnButton.setSelection(true);
//other tries
//bot.table(0).widget.redraw();
//synchronized (bot.table(0)) {
// bot.table(0).notifyAll();
//}
}
});
I have a validation in place that requires at least one output to be selected and even though by executing the code from above I can visually see that the last checkbox from the wizard is checked, the validation is still triggered.
Am I missing something from a synchronization point of view or is there another way in which I should access the checkboxes?
Thank you!
Kind Regards,
Alexandra
Attachment: Wizard.PNG
(Size: 32.91KB, Downloaded 112 times)
|
|
|
Powered by
FUDForum. Page generated in 0.04647 seconds