Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Entering text in a input box in a wizard(Entering text in a input box in a wizard)
Entering text in a input box in a wizard [message #662090] Tue, 29 March 2011 05:03 Go to next message
Shruthi  is currently offline Shruthi
Messages: 4
Registered: January 2011
Junior Member
Hello,

I was trying to enter a text in a iput box in a search wizard.
I tried the follwing code .Its not working:(


bot.menu("Search").menu("Search...").click();
SWTBotShell shell ;
bot.shell("Search").activate();
bot.textWithLabel("Object Name:").setText("diag_name");
In the Wizard , the text field name is " Object name"
And "DIag_name" is the text i want to enter.

But this is not working..
I tried with Styledtext also..Dint work.

Can anyone please rovide me a solution for this.

Best Regards,
Shruthi
Re: Entering text in a input box in a wizard [message #662197 is a reply to message #662090] Tue, 29 March 2011 12:52 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan Padegaonkar
Messages: 873
Registered: July 2009
Senior Member
What do you mean by not working? Did you get a stack trace or that the
text was not set?

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

On 3/29/11 2:03 AM, Shruthi wrote:
> Hello,
>
> I was trying to enter a text in a iput box in a search wizard.
> I tried the follwing code .Its not working:(
>
>
> bot.menu("Search").menu("Search...").click();
> SWTBotShell shell ;
> bot.shell("Search").activate();
> bot.textWithLabel("Object Name:").setText("diag_name");
> In the Wizard , the text field name is " Object name"
> And "DIag_name" is the text i want to enter.
>
> But this is not working..
> I tried with Styledtext also..Dint work.
>
> Can anyone please rovide me a solution for this.
>
> Best Regards,
> Shruthi
Re: Entering text in a input box in a wizard [message #662620 is a reply to message #662197] Thu, 31 March 2011 06:18 Go to previous message
Shruthi  is currently offline Shruthi
Messages: 4
Registered: January 2011
Junior Member
Hi Ketan,
It gives " Widget not found exception " for the line where we enter the text.

The scenario actually looks like this,
A search wizard, within that different tabs, within one tab , a text field.

I also tried after activating the respectiv tab in the wizard.

bot.tabItem("ABAP Search").activate();
bot.textWithLabel("Containing Text:").setText("Diag_name");
It still gives "Widget not found exception".
Please have a look at hits.


Regards,
Shruthi
Previous Topic:--SOLVED-- GMF/GEF editor in the first page of a SharedHeaderFormEditor
Next Topic:java .setData
Goto Forum:
  


Current Time: Sat Aug 30 22:32:19 EDT 2014

Powered by FUDForum. Page generated in 0.01970 seconds