Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Accessing checkboxes from table
Accessing checkboxes from table [message #1840235] Fri, 09 April 2021 11:07
Alexandra Tritean is currently offline Alexandra TriteanFriend
Messages: 33
Registered: March 2020
Member
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 22 times)
Previous Topic:How to open a menu?
Next Topic:How to use Katalon Studio RCP application in SWTBoT
Goto Forum:
  


Current Time: Wed Oct 20 02:12:32 GMT 2021

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

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

Back to the top