Your action is  "../../../PlatformServices/service/app/logon.object", but
the generated xpath
does not have the path but only logon.object. Are you sure you use the UI
module posted here?

To check if the UI element is uniquely defined, you can always use the call

validate(uid)

to check it.

The form does not post, seems the click on the submit button does not work.
What version of
Tellurium you are using? Do you have any JavaScript event bind to the submit
button?

Thanks,

Jian

On Mon, Feb 14, 2011 at 3:00 PM, Dickson <[email protected]> wrote:

> Hi,
>
> I'm new to using Tellurium (and actually, new to Selenium as well), so
> sorry if i'm doing something very wrong.
>
> Currently, I've used the firefox TRUMP plugin to generate some UI
> modules for me from a webpage.  I've put this into my
> testUiModule.groovy file.
> My test is to do the following:
> 1. Go to the logon page
> 2. Enter user name
> 3. Enter Password
> 4. Submit button
>
> The problem that I'm running into is in the line:
> uid: "LogonForm", clocator: [tag: "form", action: "../../../
> PlatformServices/service/app/logon.object", method: "POST", name:
> "logonForm"])
>
> When I run my junit test, it fails with:
> com.thoughtworks.selenium.SeleniumException: ERROR: Element
> //descendant-or-self::form[@name="logonForm" and @method="POST" and
> @action="logon.object"]/descendant-or-self::input[@type="text" and
> @id="usernameTextEdit" and @class="inputTextBox logonTextBox" and
> @name="username"] not found
>
> But if I remove the action and method part so it looks like this:
> uid: "LogonForm", clocator: [tag: "form", name: "logonForm"])
> the test would run and I see the values entered into the user name and
> password field (without being able to POST):
>
> I verified with Firebug that this is the location of the logon.object.
>
> Any advice?
>
> Thanks,
> Dickson
>
> --
> 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