Q:

How to specify a 'Or' conditional element specifier in Watir?

We can specify an "And" specifier in Watir, like 
ie.link(:innertext=>"google",:href=>"http://www.google.com").click

Can we specify an "Or" specifier? like 
ie.link(:innertext=>"google"||:href=>"http://www.google.com").click

A:

if browser(:text => "google").exist?
  browser(:text => "google").click
elsif browser(:href => /google/).exist?
  browser(:href => /google/).click
end

