Found the problem and fixed it in my code. Sorry for the inconvenience.

Manoj




----- Original Message ----
> From: Manoj Chavan <[email protected]>
> To: tellurium-users <[email protected]>
> Sent: Tue, March 8, 2011 1:04:29 PM
> Subject: Need help with InputBox.getValue()
> 
> Hi All,
>    Here is my UI def.
> 
> // Home Page
>           ui.Container(uid: "GoogleSearchModule", clocator: [tag: "td", 
> id:"lst-xbtn"], group: "true"){
>               InputBox(uid: "Input", clocator: [title: "Search", name: "q"])
>               SubmitButton(uid: "Search", clocator: [name:  "btnG", value: 
>"Google 
>
> Search"])
>               SubmitButton(uid: "Lucky", clocator: [value: "I'm Feeling  
>Lucky"])
>          }      
>          
> 
> //my methods
>      public void  typeSearchText(String str){
>          typeAndReturn  "GoogleSearchModule.Input" , str
>      }
>     
>      public void clickSearch(){
>           click "GoogleSearchModule.Search"
>      }
>     
>      public void clickLucky(){
>           click "GoogleSearchModule.Lucky"
>      }
>     
>      public String getSearchText(){
>           return getValue("GoogleSearchModule.Input")
>      }
> 
> 
> //my  test case
> 
>     @Test
>     public void  testValidSearch() {
>         String str = "Tellurium  AOST";
>         ghp.typeSearchText(str);
>          System.out.println((ghp.isTextPresent("AOST") ? "Found Text." :  
> "Text 
>
> not found."));
> 
>         if  (ghp.isElementPresent("GoogleSearchModule.Input")){
>              System.out.println("Search Text : " +  ghp.getSearchText());
>         }
>      }
> 
> 
> 
> the ghp.getSearchText() is always returning "" instead of  'Tellurium AOST'. 
> Am 
>I 
>
> using it incorrectly?
> 
> 
> Manoj
> 
> -- 
> You received this message because you are subscribed to the Google Groups  
>"tellurium-users" group.
> To post to this group, send email to [email protected].
> To  unsubscribe from this group, send email to 
>[email protected].
> For  more options, visit this group at  
>http://groups.google.com/group/tellurium-users?hl=en.
> 
> 

-- 
You received this message because you are subscribed to the Google Groups 
"tellurium-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tellurium-users?hl=en.

Reply via email to