Watir has its own API for dealing with frames:
@browser.frame(:id = ModalDialogContent).button.click
If you reach into the WebDriver API and switch manually, watir-webdriver
will get confused.
Jari
On Thu, Oct 6, 2011 at 3:17 PM, Jeff Nyman jeffny...@gmail.com wrote:
I just wanted to check if it's a known issue that switchTo.frame does
not appear to work with Watir-WebDriver. This does appear to work with
Selenium-WebDriver.
Here's the command I try in Selenium that does work:
@browser.switch_to.frame(ModalDialogContent)
I try a slightly modified verison of the command for Watir:
@browser.driver.switch_to.frame(ModalDialogContent)
This does not seem to work at all.
Here ModalDialogContent is the name of a frame within the browser
window when my application starts up. I'm early enough in framework
design that I can switch to Selenium if need be but I wanted to make
sure I was doing this correctly in Watir before I did so.
Any thoughts or suggetsions are most welcome.
- Jeff
--
Before posting, please read http://watir.com/support. In short: search
before you ask, be nice.
watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com