On Wed, Oct 10, 2012 at 1:48 PM, Adrian Killens <[email protected]> wrote: > How would I use a frame if the name keeps changing? E.g. like the one below, would I be able to use some kind of wildcard to get the word "default" regardless of what the frame name/id ends with? In this case it's just the number which changes. > > <iframe name="default5663_provider" id="default5663" scrolling="no" src=" http://www.test.com">
A simple solution would be: browser.frame(:name => /default/) For more regex options see http://rubular.com/ Željko -- filipin.eu -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
