protractor icon indicating copy to clipboard operation
protractor copied to clipboard

browser.switchto().frame() throws "WebDriverError: unknown error: missing 'ELEMENT'"

Open arjunUnniumbath opened this issue 8 years ago • 3 comments

hi Team, I have a Iframe in the UI and I'm trying to switchto the iframe using any of the below two methods. I'm getting the error " "WebDriverError: unknown error: missing 'ELEMENT' for both the methods.

browser.switchTo().frame(by.tagName('iframe'))

or browser.switchTo().frame(by.id('iframe'))

I'm able to reproduce this error on every website with an Iframe. Version of dependencies used: "jasmine": "^3.1.0", "log4js": "^2.5.3", "log4js-protractor-appender": "^1.1.2", "protractor": "^5.3.1", "protractor-beautiful-reporter": "^1.2.1", "protractor-jasmine2-html-reporter": "0.0.7", "request": "^2.85.0", "webdriver-manager": "^12.0.6"

chromedriver_2.38.zip geckodriver-v0.20.1.zip

Has anyone encountered this issue before?

arjunUnniumbath avatar May 08 '18 07:05 arjunUnniumbath

Hi, @arjun1092 ! Can you please provide test case example with your config file?

IgorSasovets avatar May 28 '18 19:05 IgorSasovets

@IgorSasovets : The issue got solved after upgrading to latest chrome drivers. I was referring to the following links:

https://github.com/angular/protractor/issues/4728 http://chromedriver.chromium.org/downloads

arjunUnniumbath avatar May 29 '18 06:05 arjunUnniumbath

@arjunUnniumbath , please close this issue if you solved it.

IgorSasovets avatar Jun 05 '18 13:06 IgorSasovets