But if i want to loop the SearchTable, kindly help me in writing the same in
method.
I tried giving like,
for(int i=1;i<=9;i++)
searchTable[{i}][3]
But this is not working. I am getting error,
"Cannot find UI Object searchTable[{i}][3]"
Help me in getting this resolved
On Tue, Nov 24, 2009 at 11:15 AM, John <[email protected]> wrote:
> Try the following UI module:
>
> ui.Table(uid: "searchTable", clocator: [class: "advquery"]){
> InputBox(uid: "row:*, column:3", clocator:[name: "words"])
> }
>
> Then use "searchTable[1][3]", "searchTable[2][3]", ... "searchTable[9]
> [3]"
> To refer the individual input box.
>
> Thanks,
>
> Jian
>
> On Nov 23, 11:46 pm, Gothai <[email protected]> wrote:
> > I tried to get the text box name dynamically using Xpath from the
> > table in the url "http://code.google.com/p/aost/issues/advsearch". I
> > used
> > the following code. In selenium using Java, i can dynamically get the
> > xpath
> > using for loop like,
> >
> > for (i=1;i<=9;i++)
> > {
> > String value =
> > selenium.getvalue("xpath=//tab...@class='advquery']//tr[i]/td[3]/
> > input")
> >
> > }
> >
> > How can i handle the same using Tellurium. I want to generate the
> > XPath
> > dynamically like above case.
> >
> > What version of the product are you using? On what operating system?
> > I am using Tellurium 0.6.0 on Windows.
> >
> > It is given in the advanced examples like:
> >
> > Use the templates as defined by the following UI module,
> >
> > ui.Form(uid: "issueAdvancedSearch", clocator: [action: "advsearch.do",
> > method:
> > "post"], group: "true"){
> > Table(uid: "searchTable", clocator: [class: "advquery"]){
> > Selector(uid: "row:1, column: 3", clocator: [name: "can"])
> > SubmitButton(uid: "row:1, column:4", clocator: [value:
> > "Search", name: "btn"])
> > InputBox(uid: "row:2, column:3", clocator:[name: "words"])
> > InputBox(uid: "row:3, column:3", clocator:[name: "without"])
> > InputBox(uid: "row:5, column:3", clocator:[name: "labels"])
> > Table(uid: "row:6, column:1", clocator:[:]){
> > UrlLink(uid: "row:1, column:1", clocator:[text: "%%More
> > Search Tips"])
> > }
> > InputBox(uid: "row:6, column:3", clocator:[name: "statuses"])
> > InputBox(uid: "row:7, column:2", clocator:[name: "reporters"])
> > InputBox(uid: "row:8, column:2", clocator:[name: "owners"])
> > InputBox(uid: "row:9, column:2", clocator:[name: "cc"])
> > InputBox(uid: "row:10, column:3", clocator:[name:
> > "commentby"])
> > }
> >
> > }
> >
> > If i donot want to declare all the rows and if i want to write a
> > common single syntax and dynamically provide the row number at
> > runtime, How should i declare the UI module.
> >
> > Also please guide me how to write the method using the created UI
> > module and access the input Boxes dynamically
> >
> > Thanks,
> > Gothai
>
> --
>
> 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.