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].
For more options, visit this group at
http://groups.google.com/group/tellurium-users?hl=en.