I see your problem. You have the same id "intendedMedia" used in two places
of the html source. Id should be unique in a html page.

To workaround your problem, you should remove the id attribute from your UI
module definition so that Tellurium will not search the element by ID. That
is to say, you can use

  Selector(uid: "mediaSelector", clocator: [tag: "select", name:
"intendedMedia"])

in your UI module definition

You use can use partial match, i.e.,.

Selector(uid: "mediaSelector", clocator: [tag: "select", id:
"*intendedMedia", name: "intendedMedia"])

In this way, Tellurium will use all attributes instead of the id alone.

Let us know if this works for you.

Thanks,

Jian

On Thu, Jun 10, 2010 at 5:49 PM, kamundse <[email protected]> wrote:

> Wow, ok that spit out a lot of output.  The first part before it
> showed what appears to be the source for the page was:
>
> 14:37:37.359 INFO - Got result: OK,[{"sequ":
> 2,"name":"getDiagnosisResponse","returnType":"STRING","returnResult":
> {"uid":"createAccount.mediaSelector","count":2,"matches":["<div id=
> \"intendedMedia\">\u000a<label for=\"intendedMedia\" style=\"width:
> 95%;\"><span class=\"required_mark\">* </span>What type of media are
> you considering publishing?</label>\u000a<select name=\"intendedMedia
> \" id=\"intendedMedia\">\u000a<option value=\"-1\" selected=\"selected
> \">Please Choose One</option><option value=\"0\">Book</option><option
> value=\"1\">Audio</option><option value=\"2\">Video</option><option
> value=\"3\">A combination of media</option><option value=\"4\">I'm not
> sure yet</option></select>\u000a</div>","<select name=\"intendedMedia
> \" id=\"intendedMedia\">\u000a<option value=\"-1\" selected=\"selected
> \">Please Choose One</option><option value=\"0\">Book</option><option
> value=\"1\">Audio</option><option value=\"2\">Video</option><option
> value=\"3\">A combination of media</option><option value=\"4\">I'm not
> sure yet</option></select>"]
>
> Then after the page source:
>
> Diagnosis Result for createAccount.mediaSelector
>
> -------------------------------------------------------
>
>        Matching count: 2
>
>        Match Elements:
>
>        --- Element 1 -->
>
> <div id="intendedMedia">
> <label for="intendedMedia" style="width: 95%;"><span
> class="required_mark">* </span>What type of media are you considering
> publishing?</label>
> <select name="intendedMedia" id="intendedMedia">
> <option value="-1" selected="selected">Please Choose One</
> option><option value="0">Book</option><option value="1">Audio</
> option><option value="2">Video</option><option value="3">A combination
> of media</option><option value="4">I'm not sure yet</option></select>
> </div>
>
>        --- Element 2 -->
>
> <select name="intendedMedia" id="intendedMedia">
> <option value="-1" selected="selected">Please Choose One</
> option><option value="0">Book</option><option value="1">Audio</
> option><option value="2">Video</option><option value="3">A combination
> of media</option><option value="4">I'm not sure yet</option></select>
>
> And:
>
>        Closest:
>
>
>        Closest:
>
>        --- closest element 1 ---
>
> <div id="intendedMedia">
> <label for="intendedMedia" style="width: 95%;"><span
> class="required_mark">* </span>What type of media are you considering
> publishing?</label>
> <select name="intendedMedia" id="intendedMedia">
> <option value="-1" selected="selected">Please Choose One</
> option><option value="0">Book</option><option value="1">Audio</
> option><option value="2">Video</option><option value="3">A combination
> of media</option><option value="4">I'm not sure yet</option></select>
> </div>
>
>        --- closest element 2 ---
>
> <select name="intendedMedia" id="intendedMedia">
> <option value="-1" selected="selected">Please Choose One</
> option><option value="0">Book</option><option value="1">Audio</
> option><option value="2">Video</option><option value="3">A combination
> of media</option><option value="4">I'm not sure yet</option></select>
>
> The page source for the selector is:
>
> <div id="intendedMedia">
> <label for="intendedMedia" style="width: 95%;"><span
> class="required_mark">* </span>What type of media are you considering
> publishing?</label>
> <select name="intendedMedia" id="intendedMedia">
> <option value="-1" selected="selected">Please Choose One</
> option><option value="0">Book</option><option value="1">Audio</
> option><option value="2">Video</option><option value="3">A combination
> of media</option><option value="4">I'm not sure yet</option></select>
> </div>
> <span class="field_error">  </span>
>
> It only appears once in the page source.
>
> Thanks,
>
> -Kristin
>
> --
> 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]<tellurium-users%[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