Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » SWTBot Table Cell(status of a cell in table)
SWTBot Table Cell [message #634927] Mon, 25 October 2010 03:32 Go to next message
benhu Missing name is currently offline benhu Missing name
Messages: 14
Registered: October 2010
Junior Member

Hello,
I have been writing a test case with SWTBot, I can get a table like this:
SWTBotTable table = bot.tableWithLabel("table1");
I got two problems:
1) I want to to check whether the cell(1,1) is enabled.
How can i do this?
2) How can i get the ComboBox in a cell?


Thanks,
Ben

Re: SWTBot Table Cell [message #635079 is a reply to message #634927] Mon, 25 October 2010 11:00 Go to previous message
Ketan Padegaonkar is currently offline Ketan Padegaonkar
Messages: 873
Registered: July 2009
Senior Member
Hi,

Seems very similar to this test<http://goo.gl/SZSj> that looks for a
text box when you click on a cell :)

Basically you'd get swtbot to click on the correct table cell, and ask
it to find a combobox instead of a textbox like the test does.

--
Ketan
ketan.padegaonkar.name | eclipse.org/swtbot | @ketanpkr

On 10/25/10 12:32 AM, benhu wrote:
> Hello,
> I have been writing a test case with SWTBot, I can get a table like this:
> SWTBotTable table = bot.tableWithLabel("table1");
> I got two problems:
> 1) I want to to check whether the cell(1,1) is enabled.
> How can i do this? 2) How can i get the ComboBox in a cell?
>
>
> Thanks,
> Ben
>
Previous Topic:How to map 3 or more keys to KeyStroke
Next Topic:SWTBot with Fitnesse
Goto Forum:
  


Current Time: Fri Aug 29 08:14:27 EDT 2014

Powered by FUDForum. Page generated in 0.01960 seconds