selenium webdriver测试问题

想测试网页元素:
http://www.indeed.ca/cmp/Family-Futures-Resource-Network/jobs/Family-Enrichment-Worker-3396e3ab27d0f1d4?sjdu=vQIlM60yK_PwYat7ToXhk8zp-Ak3kDWvkMS3L0Xyb01JfHXPO97qnuWgnEA72HSmJKa9WargHenL42bqgqZ_Hv0HB1mLXN5mVeoFrhMf1ZE

1.点击"Apply Now",会弹出一个iframe,想操作iframe中的元素,但是总是提示元素找不到。

想请大神帮忙看看,哪里存在问题?.java文件已经包含在附件里

public class howToWorkWithIframe2 {

WebDriver driver;
String baseUrl;

@Before
public void setUp() throws Exception {
    driver = new FirefoxDriver();
    baseUrl = "http://www.indeed.ca/cmp/Family-Futures-Resource-Network/jobs/Family-Enrichment-Worker-3396e3ab27d0f1d4?sjdu=vQIlM60yK_PwYat7ToXhk8zp-Ak3kDWvkMS3L0Xyb01JfHXPO97qnuWgnEA72HSmJKa9WargHenL42bqgqZ_Hv0HB1mLXN5mVeoFrhMf1ZE";
    driver.manage().window().maximize();
    driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
}

@Test
public void test() throws InterruptedException {
    driver.get(baseUrl);

    Thread.sleep(3000);
    driver.findElement(By.xpath("//a[@class = 'indeed-apply-button']")).click();;
    driver.switchTo().frame("indeedapply-modal-preload-iframe");
    driver.findElement(By.xpath(".//*[@id='applicant.name']")).sendKeys("success!");;

}

@After
public void tearDown() throws Exception {
}

}

http://zhidao.baidu.com/link?url=fSA_n74Q-1Ubh5Caa5kMaUDiC6d2gPYeKYBz5PnLA3Etp-LH-ZgBsnFvnbhEFiI8SJRW7Y9OnyV5YZsSSrqrNMEaEnj42Y81niPBQDitALK

二楼,没太看懂你发的连接的意思