On 21-Jul-08, at 2:01 PM, Shalini Gupta wrote:
> if yes, please help me what should I do next because now this code is
> throwing NullPointerException because I am trying to get text of  
> Button
> by using its Class Name  
> bot.button(Example.addButton.getText()).click();


Example.addButton.getText() ?

Is the button a static instance sitting inside the Example class ? Why  
would you do that ?

I'd just ask that you try out the SWTBotDemo class that I'd pointed  
out earlier, and play around it for a while.

-- Ketan


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SWTBot-users mailing list
SWTBot-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swtbot-users
http://swtbot.org/ - a functional testing tool for SWT/Eclipse

Reply via email to