[Wtr-general] Proposal for supporting multiple attributes
Bret Pettichord
bret at pettichord.com
Tue Jun 6 23:56:13 EDT 2006
On 6/6/06, Angrez Singh <angrez at gmail.com> wrote:
>
> Can't XPath functionality be used to access elements using multiple
> attributes? This is already there.
>
> > ie.div(:class => "MenuItem", :text => "Pulverize").click
>
>
> This translates to:
> ie.div(:xpath, "//div[@class = 'MenuItem' and @text = 'Pulverize']).click
>
> I think XPath provides much more powerful way to select element in
> addition to selecting it using multiple attributes. Comments?
>
I've run into this bug when i've tried to use xpath as you describe.
http://jira.openqa.org/browse/WTR-19
http://www.germane-software.com/projects/rexml/ticket/61
And i don't think i can wait for the REXML fix. There is also the issue of
speed, which i think would make this valuable even after REXML was working
correctly.
Bret
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060606/8fc457e3/attachment.html
More information about the Wtr-general
mailing list