[Wtr-general] Is it possible to nest :xpath queries?
Łukasz Olek
lukasz.olek at gmail.com
Thu Apr 20 09:48:12 EDT 2006
Hello,
I am wondering if it is possible to do something like this:
book = ie.span(:xpath, "//span[@name='book']")
book.link(:xpath, "//a[@name='save']").click()
The only way for me to execute this is to combine it into one query:
ie.link(:xpath, "//span[@name='book']//a[@name='save']").click
But for more complex examples it will be unreadable.
Maybe you have some solutions?
Greetings,
Lukasz Olek
More information about the Wtr-general
mailing list