I like to help, but it is very difficult because I don't have the web app to
test against.
I can only tell you how to narrow down and track the problem.

Usually, there are two cases, either the element cannot be located, or the
event
is not triggered or not executed correctly.

The the former one, you could use the follow methods to test if the element
could
be found at run time or not:

diagnose(uid of element)

validate(uimodule id)

For the latter case, it is more difficult. Please first try to eliminate the
first case.

Thanks,

Jian

On Thu, May 12, 2011 at 6:21 AM, HariAmtex <[email protected]> wrote:

> This is my code, The code for clicking the image. Its not working.
>
> class project Groovy extends DslContext{
>
>        public void defineUi() {
> ui.Container(uid: "Mydata", clocator: [tag: "table", class: "mydata"])
> {
>        InputBox(uid: "Uname", clocator: [tag: "input", type: "text", id:
> "uname", name: "uname"], respond: ["keyDown"])
>        InputBox(uid: "Pword", clocator: [tag: "input", type: "password",
> id:
> "pword", name: "pword"], respond: ["keyDown"])
>        UrlLink(uid: "ButtonSubmit", clocator: [tag: "a", class: "login",
> id:
> "ButtonSubmit"])
>        Container(uid: "Section", clocator: [tag: "tr"]){
>        Container(uid: "Part", clocator: [tag: "td", direct: "true"]){
>        Image(uid: "None", clocator: [tag: "img", class: "none"])
>                                        }
>                                }
>                        }
>
>                ui.Image(uid: "D00000000002", clocator: [tag: "img", title:
> "Delete
> User", id: "D00000000002"])
>
>
>
>        }
>
>        //Add your methods here
>
>        public void execFlow1(){
>
>                type "Mydata.Uname", "admin"
>                type "Mydata.Pword", "Hari"
>                click "Mydata.ButtonSubmit"
>
>        }
>
>        public void execFlow4(){
>                int second = 0;
>                while(isElementPresent ("D00000000002")== false)
>                {
>                        if(second >= 5)
>                                break;
>                        Thread.sleep 1000
>                        second++;
>                }
>                click "D00000000002"
>
>        }
>
>
> }
>
> --
> 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