angular / protractor

E2E test framework for Angular apps
http://www.protractortest.org
MIT License
8.75k stars 2.31k forks source link

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

Open arjunUnniumbath opened 6 years ago

arjunUnniumbath commented 6 years ago

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?

IgorSasovets commented 6 years ago

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

arjunUnniumbath commented 6 years ago

@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

IgorSasovets commented 6 years ago

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