I'm automating some tests in WebLogic, using Ruby, Selenium and WebDriver and haven't been able to select the frame on my page. 

Page code (more content is in the frame itself):

```
<html dir="ltr" lang style="visibility: visible;">
  <head>...</head>
  <frameset title="Application Content">
    <frame name="main" src="cisMain.jsp?language=ENG" scrolling="no" title="Main Frame">...</frame>
    <noframes>
    Browser not supported
    </noframes>
  </frameset>
</html>

```

Ruby code: 

```
require 'rubygems'
require 'selenium-webdriver'

driver = Selenium::WebDriver.for :chrome
driver.get "http://myserver:7001/CCBNATV/loginPage.jsp"

#log in code truncated

puts "Switch to default Content"
element = driver.switch_to.default_content

puts "Switch to main frame"
myframe = driver.find_element(:name, 'main')

```

I have also tried locating the frame with XPath: 

```
driver.find_element :xpath, "/html/frameset[@title='Application Content']/frame[@name='main']"

driver.find_element :xpath, "/frame[@name='main']"

```