|
Re: How to click menu items in SWTBOT [message #1090060 is a reply to message #1081372] |
Mon, 19 August 2013 16:57 |
|
On 08/07/2013 08:32 AM, Alok Dwivedi wrote:
> I have a editor toolbar where there is a SWTBotToolbarDropDownButton which further drops down to two Export Options.I want to click both these options one by one.For clicking the first option I had used the code:-
>
> SWTBotToolbarDropDownButton button = dmdEditor.bot().toolbarDropDownButton(); assertNotNull(button);
> button.click().menuItem("Export to MS Visio").click();
> But this reports WidgetNotFoundException.
When do you get this exception? When getting the button, or when getting
the menu?
--
Mickael Istria
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03068 seconds