Entering text in a input box in a wizard [message #662090] |
Tue, 29 March 2011 05:03  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.04051 seconds