Hi Jian,
Thank you, indeed, for your quick answer. I afraid I still did not fully
gasp the Ui module stuff, because when I try to use your code I get this
error:
17:44:20.955 INFO - Got result: ERROR: Element
//descendant-or-self::table/div[1]/descendant-or-self::a...@class="subcategoryLink
MA-DOGS"] not found on session 6c9d05b3913740309c58ae289e0e05f5
I am using the following dsl, which should print 'Brain' at the end:
//Categories Bar
ui.Container(uid: "Categories", clocator: [tag: "ul"], group:"true") {
UrlLink(uid: "dogs", clocator: [tag: "a", title: "Dogs"])
UrlLink(uid: "cats", clocator: [tag: "a", title: "Cats"])
UrlLink(uid: "equine", clocator: [tag: "a", title: "Equine"])
UrlLink(uid: "small", clocator: [tag: "a", title: "Small Animals"])
UrlLink(uid: "farm", clocator: [tag: "a", title: "Farm Animals"])
UrlLink(uid: "birds", clocator: [tag: "a", title: "Birds"])
UrlLink(uid: "per", clocator: [tag: "a", title: "Prescriptions
A-Z"])
}
ui.List(uid: "dogList", clocator: [tag: "table"], separator: "div"){
Container(uid: "all", clocator: [tag: "a", class: "subcategoryLink
MA-DOGS"]){
TextBox(uid: "text", clocator: [tag: "strong"])
}
}
click "Categories.dogs"
waitForPageToLoad 30000
println getText("dogList[1])
Thanks a lot for your help,
Zsolt
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---