Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 17:18 Go to next message
Sankeerthana Bharath is currently offline Sankeerthana BharathFriend
Messages: 1
Registered: March 2015
Junior Member
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 04:10 Go to previous messageGo to next message
Abhirami Kumaraguruparan is currently offline Abhirami KumaraguruparanFriend
Messages: 5
Registered: April 2015
Junior Member
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 08:41 Go to previous message
Abhirami Kumaraguruparan is currently offline Abhirami KumaraguruparanFriend
Messages: 5
Registered: April 2015
Junior Member
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: Wed Nov 14 09:28:13 GMT 2018

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

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

Back to the top