Skip to main content



      Home
Home » Eclipse Projects » SWTBot » Bot Unable to find Comboviwer..(Hi, I am trying to test an eclipse RCP application. I want SWTBot to click on an item of a combo box (drop down box), I tried bot.combo,bot.ccombo, bot.comboboxwithId but I get a WidgetNotFoundExc)
Bot Unable to find Comboviwer.. [message #1747375] Mon, 14 November 2016 02:29 Go to next message
Eclipse UserFriend
Hi, I am trying to test an eclipse RCP application. I want SWTBot to click on an item of a combo box (drop down box),
I tried bot.combo,bot.ccombo, bot.comboboxwithId but
I get a WidgetNotFoundException. Can someone show me how to access the combo and click one of its items ?
  • Attachment: cmbviwer.jpg
    (Size: 26.17KB, Downloaded 192 times)
Re: Bot Unable to find Comboviwer.. [message #1747419 is a reply to message #1747375] Mon, 14 November 2016 09:33 Go to previous message
Eclipse UserFriend
Hi Sumit,

Whether you need to call bot.comboBox() or bot.ccomboBox() depends entirely on your application, is it using a Combo widget or a CCombo widget? Or perhaps the application could be using some custom widget that is not supported by SWTBot?

Assuming it's a Combo or CCombo, next you could try and make sure that the 'bot' is at the most narrowed scope to find your widget. Is it from a SWTWorkbenchBot? You might try to use a bot from a SWTBotShell, or from a SWTBotView. Also make sure that the Shell that contains your combo box is the active shell.

Patrick
Previous Topic:GEF / Draw2D unit tests
Next Topic:Not able to access table view
Goto Forum:
  


Current Time: Tue May 13 14:30:14 EDT 2025

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

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

Back to the top