selenium: Issue with chrome driver not able to switch to frame

Meta -

OS: Windows 10

Selenium Version: 2.53

Browser: Chrome

Browser Version:

Version 64.0.3282.119 (Official Build) (64-bit)

Expected Behavior -

While Switching to Frame it should switch to desired Frame using xpath given

Actual Behavior -

Fails to switch to desired frame directly using xpath

Steps to reproduce -

No specific step code was working fine till chrome driver version 2.29 on chrome version 62.00 and works fine on IE driver as well with same code Now after using chrome driver 2.35 with chrome version 64, I see the issue I googled and found same issue reported earlier and closed

Similar old issue that was closed

If i use the workaround suggested in same thread I see it works ie Find Frame by its xpath then again switch to same frame by using getattribute id something like:

WebElement frame = drv.findElement(By.xpath("//iframe[@title='...']"));
		drv.switchTo().frame(frame.getAttribute("id"));

This used to work in older chrome driver 2.29 and below with chrome version 62 and below and still works on Internet explorer driver. wait.until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(By.id("..")));

Please confirm if this is issue Let me know if threre are plans to fix this so that I may twaek my framework accordingly

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (5 by maintainers)

Most upvoted comments

Possibly this one from chromedriver?

Please provide code as a text, not a picture. And we need a sample page that can be usedd to reproduce the issue.