Hi,
First I wanted to
thank the creators of Watir for this great tool. We are still in an evaluation
stage of both Watir and Selenium but after several years of fighting with
SilkTest (and Segue support) I am finding both tools fun & refreshing.
Thanks for your hard work!
I have two
questions.
The first involves
xpath performance. The pages for the application I'm testing are pretty large,
the one I'm working with now has about 3500 html nodes. Lots of nodes that I
need to get at don't have names or IDs so I've been using XPath. Its great in
that I can get at anything on my page but the downside is the performance.
Typically one statement with an XPath locator will take 25-40 seconds to execute
on my page. Is this normal on a page of this size and is there anything I can do
to improve the performance?
Second, due to the
XPath performance issue I was starting to look at using ole_object method. I'm
trying to execute the following statement in my Watir
script:
ie.cell(:text,
"Reassign").ole_object().parentElement().parentElement().click()
I want to go up 2 levels from the td
containing "Reassign" and click that element.
I know that the cell
is found successfully as I can flash it but when I execute the statement I get
the following error:
undefined method `parentElement' for
nil:NilClass
c:/Watir/examples/scratch.rb:17
c:/Watir/examples/scratch.rb:17
I'm guessing this means the ole_object()
method is not returning anything. What am I doing wrong?
Thanks,
Greg
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
