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.

Reply via email to