Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 07:29 Go to next message
Sumit Ganjale is currently offline Sumit GanjaleFriend
Messages: 7
Registered: April 2016
Junior Member
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 149 times)
Re: Bot Unable to find Comboviwer.. [message #1747419 is a reply to message #1747375] Mon, 14 November 2016 14:33 Go to previous message
Patrick Tasse is currently offline Patrick TasseFriend
Messages: 84
Registered: July 2009
Member
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: Sun Dec 10 17:18:44 GMT 2023

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

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

Back to the top