I haven't found anything about this topic yet, nor in the issue
tracker, but came across the fact that one of the acceptance tests
dealing with window and frame switching is skipped for Safari:
http://selenium.googlecode.com/svn/trunk/dotnet/test/WebDriver.Common.Tests/WindowSwitchingTest.cs
Would like to confirm, does SafariDriver support switchin frames/
iframes? I can understand lack of support for window switching since
it can't handle alerts and can't open new window (via javascript). But
frames/iframes too?
Calling something like
driver.switchTo().frame(driver.findElements(By.tagName("iframe")).get(0));
can return timeout exception with message Timed out awaiting response
to command "switchToFrame" after 30002 ms
Calling driver.switchTo().frame(0); can return WebDriverException with
message 'undefined' is not an object (evaluating
'a.contentWindow.document')
I tried against different valid frames numbers (1, etc.) and it either
returned same errors or that it couldn't find element of next command
since it wasn't on the right frame.
I haven't seen the iframe switching issue in FF or IE so far.