Skip to content
This repository was archived by the owner on Nov 29, 2018. It is now read-only.
This repository was archived by the owner on Nov 29, 2018. It is now read-only.

Chrome Driver can’t find elements after switching to new frame #1969

@lukeis

Description

@lukeis

Originally reported on Google Code with ID 1969

What steps will reproduce the problem?
1.RemoteWebDriver seleniumDriver= new ChromeDriver();
2.seleniumDriver.get("URL");
3.WebElement elementFrame=null;
4.elementFrame = seleniumDriver.findElement(By.xpath("//iframe[@class='ms-dlgFrame']"));
5.seleniumDriver.switchTo().defaultContent();
6.seleniumDriver.switchTo().frame(elementFrame);
7.List<WebElement> ElementList=seleniumDriver.findElements(By.xpath("//input[@value='Save']"));
8. System.out.println(ElementList.size());


What is the expected output? What do you see instead?
Selenium should be able to find input button. I have checked with Internet Explorer
8 and Firefox 3.6, where this code is working fine. But with Chrome driver Selenium
can’t find the element

What version of the product are you using? On what operating system?
Chrome Driver version:chromedriver_win32_13.0.775.0. 
OS: XP SP2
Chrome version: 12



Reported by writwiksinha on 2011-07-01 13:13:30

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions