Seems this is a perfect example for TrUMP. What is the UI module
generated by TrUMP?

On Jun 16, 3:27 pm, Manoj Chavan <[email protected]> wrote:
> Hi Need some expert help with a Form definition.
>
> Below is the html for this I have defined the Groovy Definition. At the end I 
> have placed the error I am getting
> trying to identify the controls. What did I miss. Thanks for all the help and 
> the guidance.
>
> Manoj
>
> <div id="login">
> <ul>
> <form method="post" action="/login">
> <li class="hat_login">
> <input id="inline-login-email" class="email hint text-input" type="text" 
> value="Email Address" name="user[email]"/>
> </li>
> <li class="hat_login">
> <input id="inline-login-password" class="password hint text-input" 
> type="password" value="Password" name="user[password]"/>
> </li>
> <li>
> <input class="login_button" type="image" src="/images/sprites/buttons.jpg"/>
> </li>
> <li>
> <a href="/account/forgot_password">Forgot password?</a>
> </li>
> </form>
> </ul>
> </div>
>
> // Login Form Def
>         ui.Form(uid: "brlogin", clocator: [action: "/login", method: "post"], 
> group: "true") {
>             InputBox(uid: "uid", clocator: [id: "inline-login-email" , name: 
> "user[email]"])
>             InputBox(uid: "pwd", clocator: [id: "inline-login-password", 
> name: "user[password]"])
>             UrlLink(uid: "loginbtn", clocator: [class: "login_button", src: 
> "/images/sprites/buttons.jpg"])
>         }
>
> Dump locator information for brlogin
> -------------------------------------------------------
> brlogin: //descendant-or-self::fo...@action="/login" and @method="post"]
>
> brlogin.uid: 
> //descendant-or-self::form[descendant::inp...@id="inline-login-email" and 
> @name="user[email]"] and descendant::inp...@id="inline-login-password" and 
> @name="user[password]"] and descendant::a...@class="login_button" and 
> @src="/images/sprites/buttons.jpg"] and @action="/login" and 
> @method="post"]/descendant-or-self::inp...@id="inline-login-email" and 
> @name="user[email]"]
>
> brlogin.pwd: 
> //descendant-or-self::form[descendant::inp...@id="inline-login-email" and 
> @name="user[email]"] and
> descendant::inp...@id="inline-login-password" and @name="user[password]"] and 
> descendant::a...@class="login_button" and @src="/images/sprites/buttons.jpg"] 
> and @action="/login" and 
> @method="post"]/descendant-or-self::inp...@id="inline-login-password" and 
> @name="user[password]"]
>
> brlogin.loginbtn: 
> //descendant-or-self::form[descendant::inp...@id="inline-login-email" and 
> @name="user[email]"] and descendant::inp...@id="inline-login-password" and 
> @name="user[password]"] and descendant::a...@class="login_button" and 
> @src="/images/sprites/buttons.jpg"] and @action="/login" and 
> @method="post"]/descendant-or-self::a...@class="login_button" and 
> @src="/images/sprites/buttons.jpg"]
> -------------------------------------------------------
>
> 12:18:02.985 INFO - Command request: 
> mouseOver[//descendant-or-self::form[descendant::inp...@id="inline-login-email"
>  and @name="user[email]"] and descendant::inp...@id="inline-login-password" 
> and @name="user[password]"] and descendant::a...@class="login_button" and 
> @src="/images/sprites/buttons.jpg"] and @action="/login" and 
> @method="post"]/descendant-or-self::inp...@id="inline-login-email" and 
> @name="user[email]"], ] on session 100ee604607c40bca80932608bab3bac
> 12:18:03.028 INFO - Got result: ERROR: Element 
> //descendant-or-self::form[descendant::inp...@id="inline-login-email" and 
> @name="user[email]"] and descendant::inp...@id="inline-login-password" and 
> @name="user[password]"] and descendant::a...@class="login_button" and 
> @src="/images/sprites/buttons.jpg"] and @action="/login" and 
> @method="post"]/descendant-or-self::inp...@id="inline-login-email" and 
> @name="user[email]"] not found on session 100ee604607c40bca80932608bab3bac
> 12:18:03.043 INFO - Command request: 
> captureScreenshot[Screenshot1245179883037.png, ] on session 
> 100ee604607c40bca80932608bab3bac
> 12:18:03.047 INFO - Creating Robot
> 12:18:04.493 INFO - Got result: OK on session 100ee604607c40bca80932608bab3bac
> Screenshot for exception <<ERROR: Element 
> //descendant-or-self::form[descendant::inp...@id="inline-login-email" and 
> @name="user[email]"] and descendant::inp...@id="inline-login-password" and 
> @name="user[password]"] and descendant::a...@class="login_button" and 
> @src="/images/sprites/buttons.jpg"] and @action="/login" and 
> @method="post"]/descendant-or-self::inp...@id="inline-login-email" and 
> @name="user[email]"] not found>> is saved to file Screenshot1245179883037.png
--~--~---------~--~----~------------~-------~--~----~
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