Hi all. I'm currently using watir-webdriver and I'm trying to find
text that will appear on a web page. I know you can do this:
browser.text.should include(my text)
However, that won't accept a regular expression. I found that
something called Watir::Simple lets me do something like this:
On Fri, Aug 12, 2011 at 7:33 PM, Jeff Nyman jeffny...@gmail.com wrote:
browser.text.should include(my text)
However, that won't accept a regular expression.
Try something like this:
target.should match regex
From http://cheat.errtheblog.com/s/rspec/
Željko
--
watir.com - community manager
Den 13. aug. 2011 kl. 11:42 skrev Jeff Nyman jeffny...@gmail.com:
browser.text.should include(my text)
browser.text.should match(/my text/)
or
browser.text.should =~ /my text/
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
Please try to use index!
On Thu, Aug 11, 2011 at 8:36 PM, Dmitri Karusar flysteppe...@gmail.comwrote:
No luck with:
$ie.frame(:name,mainFrame).select_list(:name,defaultLicensingPeriod).set(2
months)
The thing is All select_menus on my page have same span class:
span class=containerinput
This has been released. Thanks to Jari.
See an article about how to use it here:
http://watirmelon.com/2011/08/14/telling-watir-webdriver-to-always-locate-elements-upon-use/
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.