On 8 November 2006 16:37, Becky F. wrote:
Thanks so much for the replies. Am I right in thinking that these
plugins will work if the element itself isn’t there?
- Actually, those two references are to the same plugin
- Yes, the condition will work.
page.if page[‘test’] do
puts “Else working!”
“puts” will not work, because, actually, there is no true “if”
should use something like page.alert(‘Working!’)
Where test does not exist on the page, and I get an error saying If is
not defined :os
As far as I understand, you haven’t installed plugin yet. The error is
because “page.if” method is defined in that plugin and not part of