I've been thinking about smth like this, though don't really like this way and
wanted to discuss it first.
> On 11 ÿíâ. 2014 ã., at 22:10, Jari Bakken <[email protected]> wrote:
>
> Ugh, I think both of these are going to be tricky to get right.
>
> You can get the spec for watir/watir-webdriver#211 passing by doing this, but
> I think it will fail on nested frames
>
> diff --git a/lib/watir-webdriver/elements/iframe.rb
> b/lib/watir-webdriver/elements/iframe.rb
> index 2351db5..676527b 100644
> --- a/lib/watir-webdriver/elements/iframe.rb
> +++ b/lib/watir-webdriver/elements/iframe.rb
> @@ -138,6 +138,9 @@ module Watir
>
> def switch!
> @driver.switch_to.frame @element
> + rescue Selenium::WebDriver::Error::StaleElementReferenceError
> + @driver.switch_to.default_content
> + @driver.switch_to.frame @element
> rescue Selenium::WebDriver::Error::NoSuchFrameError => e
> raise UnknownFrameException, e.message
> end
> —
> Reply to this email directly or view it on GitHub.
---
Reply to this email directly or view it on GitHub:
https://github.com/watir/watirspec/commit/a763f09b0ff58d050bc4019fe961ed9eac111eae#commitcomment-5043888
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development