| How to Wait until the editor opens [message #689807] |
Tue, 28 June 2011 07:58 |
divithshetty Messages: 4 Registered: May 2011 |
Junior Member |
|
|
Hi,
When the create Project wizard completes it creates one default file and opens that file. I want to wait until the file opens.
I wrote the below code snippet. But its not working. Can someone Please guide me how do i do this task.
//SWTBOt Code to open new project wizard goes here.
projectName.setText("MyNewProject");
Matcher withPartName = withPartName("fileName");
Matcher matcher = allOf(IsInstanceOf.instanceOf(IEditorReference.class), withPartName);
bot.button("Finish").click();
bot.waitUntil(Conditions.waitForEditor(matcher))
Thanks in Advance
|
|
|
Powered by
FUDForum. Page generated in 0.01632 seconds