Skip to main content



      Home
Home » Eclipse Projects » SWTBot » Assert the text inside the MessageDialog(How to assert the text inside the MessageDialog box in #SWTBot? )
Assert the text inside the MessageDialog [message #1663946] Tue, 10 March 2015 13:18 Go to next message
Eclipse UserFriend
How to assert the text inside the MessageDialog box in #SWTBot? For eg. "Exit Eclipse SDK?" in the pic


Re: Assert the text inside the MessageDialog [message #1691399 is a reply to message #1663946] Tue, 07 April 2015 00:10 Go to previous messageGo to next message
Eclipse UserFriend
You could assert the statement in the MessageDialog using

assertEquals("Exit Eclipse SDK", shell.bot().label("Exit Eclipse SDK").getText());
Re: Assert the text inside the MessageDialog [message #1691429 is a reply to message #1663946] Tue, 07 April 2015 04:41 Go to previous message
Eclipse UserFriend
you could assert the message in the MessageDialog by,

assertEquals("Exit Eclipse SDK", shell.bot().label("Exit Eclipse SDK").getText());

-Abhirami
Previous Topic:Unable to instantiate SWTWorkbenchBot in Eclipse E4
Next Topic:problems with viewByTitle in Mars
Goto Forum:
  


Current Time: Mon May 12 15:19:44 EDT 2025

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

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

Back to the top