I would see that as link after headline.

Wonder what other people think ....

Cheers,
Lawrence.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bret Pettichord
Sent: Wednesday, 20 December 2006 11:31
To: wtr-general@rubyforge.org
Subject: [Wtr-general] Syntax for relative attributes

I am in the process of adding a new feature to Watir and have a
question.

Consider this code:

     headline = $ie.div(:text, 'Pragmatic Version Control')
     link = $ie.link(:class => 'addtocart', :after? => headline)

Would you assume that link was after headline, or headline after link?
I can make it work either way. Which is more intuitive? Or is it 
confusing no matter what?

Bret
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to