From the picture it looks like you are working with an RCP AUT, which would mean that the component depicted is an "SWT Tree" you can find modules to select the checkbox and check its selection in the "unbound modules SWT" library. Documentation is here.
I have tried the testcases for SWT tree but this is not tree.This is the Import wizard in the Eclipse.This wizard shows up in Import from File System.I have checked it with SWT SPY and it is showing it as table.
Ah, my bad Sorry about that. To toggle the state of the checkbox, I have a feeling that you'll have to do one of two things:
- either use the select cell/ select value from column actions and use e.g. 5 percent and 5 percent as the places to click within the cell. That should be close enough to get the checkbox
- if you're only testing on windows systems, then you may be able to select the table row you want then hit "SPACE". IIRC that toggles the checkbox as well.
Space bar thing worked for me.
I have another question. edit-parts in RCP are identified by the class they are associated with (With inspector view).Can they be identified by their names on Figure canvas?
I have a RCP Project and I wanna verify if a checkBox is checked or not, if it is unchecked then check it. and if it is checked, then leave it.
The problem is these checkBox is inside a table. which is not recognized as checkbox.
I have read an answer from Alex to use the space button to check it. But first I would like to verify its status.
I suggect to check if your table is a TreeTable - in this case you'll be able to use SWT Tree keywords (unbound_modules_swt).
Otherwise - write your own extension that would return state of selected row.