Please use the diagnose method to print out the runtime result for the
UI element that threw the error.

http://code.google.com/p/aost/wiki/UserGuide070TelluriumAdvancedTopics#Tellurium_Powerful_Utility:_Diagnose

Thanks,

Jian
On Nov 24, 12:16 am, khush <[email protected]> wrote:
> Hello Hari,
>
> The following is my groovy method
>
>  public void addHdUser() {
>     selectByLabel "userForm.role", 'SERVICE_DESK'
>     selectByLabel "userForm.businessunit", 'UNIT'
>     waitForPageToLoad 30000 //TODO remove if possible
>   }
>
> and my UI def is as following:
>
>   // uid for user add form
>     ui.Form(uid: "userForm", clocator: [tag: "form", name: "userForm",
> method: "post", action: "/action.jsp"])    {
>       Selector(uid: "role", clocator: [tag: "select", name:
> "userForm:group", id: "userForm:group"])
>       Selector(uid: "businessunit", clocator: [tag: "select", name:
> "userForm:businessUnit", id: "userForm:businessUnit"])
>       SubmitButton(uid: "submitbtn", clocator: [tag: "input", type:
> "submit", name: "userForm:submit", id: "userForm:submit"], respond:
> ["click"])
>     }
>
> I got the following exception :
>
> com.thoughtworks.selenium.SeleniumException: ERROR: Element //
> descendant-or-self::fo...@name="userForm" and @method="post" and
> @action="/action.jsp"]/descendant-or-self::select
> [...@name="userForm:group" and @id="userForm:group"] not found.
>
> and it comes after my first select works i can see this on the page
> but when the control goes to second select option it throws the above
> exception.
>
> Thanks,
> Khush
>
> On Nov 24, 10:02 am, Harihara Vinayakaram <[email protected]> wrote:
>
> > Hi
> >    How does this work from a normal browser ?
> >      1. Select role
> >      2. Page refereshes from server
> >      3. Select Unit ( At this point what is the value of the role .. )
> > Should'nt the application return a page with the role selected ?
>
> > Thanks
> > Regards
> > Hari
>
> > On Tue, Nov 24, 2009 at 10:22 AM, khush <[email protected]> wrote:
> > > Hi John,
>
> > > I don't want to record only i have to write the test case like:
>
> > >    selectByLabel "userForm.role", 'ADMIN'
> > >    selectByLabel "userForm.businessunit", 'UNIT'
>
> > > both of these select labels have server side events and make the page
> > > refresh everytime on select option.
> > > I can not split their working in two different processes as they both
> > > are mandatory fields.
> > > if i select one whole page refreshes and the value of second select
> > > goes again i have to select second one then again the whole page
> > > refreshes and the value of first select goes.
>
> > > Any idea?
> > > Thanks.
>
> > > On Nov 23, 7:20 pm, Jian Fang <[email protected]> wrote:
> > > > You can record the two selectors separately and then put them into one
> > > > Groovy UI module file.
>
> > > > On Mon, Nov 23, 2009 at 6:17 AM, khush <[email protected]>
> > > wrote:
> > > > > Hello Jian,
>
> > > > > Thanks for your reply but i am having another problem.
>
> > > > > I am having two such select options which are causing server side
> > > > > actions.
> > > > > If i try to refill the one then the second one goes and vice versa.
> > > > > This thing is coming in a loop.
>
> > > > > Please suggest me any suggestion.
>
> > > > > Thanks,
> > > > > Khus,
>
> > > > > On Nov 18, 9:31 pm, Jian Fang <[email protected]> wrote:
> > > > > > Because your whole page is reloaded, the DOM is re-built and you
> > > cannot
> > > > > > generate one UI module from two different
> > > > > > DOM structures.
>
> > > > > > I would suggest you record twice. For the first time, record the
> > > select
> > > > > menu
> > > > > > and generate a UI module.
>
> > > > > > After the page is reloaded, clean up the existing UI module and 
> > > > > > start
> > > a
> > > > > new
> > > > > > record session to generate other UI modules.
>
> > > > > > Hope this helps.
>
> > > > > > Thanks,
>
> > > > > > Jian
>
> > > > > > On Wed, Nov 18, 2009 at 4:02 AM, khush <[email protected]>
> > > > > wrote:
> > > > > > > Hello All,
>
> > > > > > > I am trying to record a web page in my project. This web page is
> > > > > > > having select menu which are firing server side events and hence
> > > > > > > refreshing the whole page on select.
>
> > > > > > > When i select an option from this menu; TRUM  recording breaks up.
>
> > > > > > > If i start recording again my web test fails on this event.
>
> > > > > > > Any body having any idea?
>
> > > > > > > Thanks
>
> > > > > > > --
>
> > > > > > > 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]>
> > > <tellurium-users%[email protected]<tellurium-users%[email protected]>
>
> > > > > <tellurium-users%[email protected]<tellurium-users%[email protected]>
> > > <tellurium-users%[email protected]<tellurium-users%[email protected]>
>
> > > > > > > .
> > > > > > > For more options, visit this group at
> > > > > > >http://groups.google.com/group/tellurium-users?hl=.
>
> > > > > --
>
> > > > > 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]>
> > > <tellurium-users%[email protected]<tellurium-users%[email protected]>
>
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/tellurium-users?hl=.
>
> > > --
>
> > > 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