0

i'm running a SWTBot test and i don't know how to select the text(message) of a dialog.

i can get the text of the shell like:

       bot.activeShell().getText().equals("Login error")

seen method for tooltip but not message.

Thanks

Eli
  • 59
  • 5

1 Answers1

1

shell.getText() would return the Shell title. If you want the message inside the dialog, then you have to "find" it. You'll probably need to use "bot.label()" and similar methods.

Mickael
  • 3,506
  • 1
  • 21
  • 33