Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Virtual lists in Combo (test selection of virtual list item in a combo)
Virtual lists in Combo [message #492612] Wed, 21 October 2009 05:36 Go to next message
Jay Norwood is currently offline Jay Norwood
Messages: 112
Registered: July 2009
Senior Member
When a combo box list is generated at pull-down, as is apparently being done in a Dialog box in the RSE, the setSelection in the attempted test below fails, even though the string is among the generated items in the list. The problem is that the list doesn't get generated during the setSelection call. Is there a standard way this should be handled?

SWTBotCombo systemCombo = bot.comboBoxWithLabel("System type:");
systemCombo.setSelection("SC8517");
Re: Virtual lists in Combo [message #492813 is a reply to message #492612] Wed, 21 October 2009 19:58 Go to previous message
Jay Norwood is currently offline Jay Norwood
Messages: 112
Registered: July 2009
Senior Member
I did further debug and found that the underlying widget was not a Combo (even though it looked like a Combo). The comboBoxWithLabel call did find some Combo, but it wasn't the one I expected, and it had no list yet.

So, this isn't caused by a virtual list creation, as I had expected from the initial debug.

Previous Topic:Re: [swtbot-dev] Workaround for Native Dialogs
Next Topic:Support to click tree table cell, proposal
Goto Forum:
  


Current Time: Thu Oct 23 06:56:28 GMT 2014

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

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