Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

IE does not support switchToFrame #71

Closed
JoshuaKGoldberg opened this issue Aug 23, 2018 · 8 comments
Closed

IE does not support switchToFrame #71

JoshuaKGoldberg opened this issue Aug 23, 2018 · 8 comments

Comments

@JoshuaKGoldberg
Copy link

🙃

Running this with jest-environment-webdriver and error reporting in SeleniumHQ/selenium#6321:

 FAIL  test/end-to-end/dev/Tests/Consumption/ConsumptionAccessibility.test.ts (35.275s)
  Consumption Accessibility
    × passes aXe (7426ms)

  ● Sample Accessibility Tes › passes aXe

    UnsupportedOperationError: switchToFrame: Error 404: Not Found
    Not Found

      at parseHttpResponse (node_modules/selenium-webdriver/lib/http.js:557:11)
      at Executor.execute (node_modules/selenium-webdriver/lib/http.js:468:26)

Looks like it's from the driver.switchTo()s in findFramesAndInject in lib/inject.js. Is there a way around using them? Can the script be injected using, say, driver.executeScript and some fancy string concats?

@stephenmathieson
Copy link
Member

Is there any way you could provide a more complete set of reproduction steps? The switchToFrame method is part of Selenium core, so I'm struggling to understand why it'd 404.

@JoshuaKGoldberg
Copy link
Author

part of Selenium core

I assume it's because the IE driver doesn't support that method.

You should be able to repro using the sample code listed in the README.md Usage section when running against Internet Explorer using IEDriverServer.exe.

If it helps, I'm running on Windows Server 2016 against IE 11.

@stephenmathieson
Copy link
Member

Thanks, this helps. I'll see about getting a Windows machine for testing and/or use a VM.

@stephenmathieson
Copy link
Member

I've done some primitive testing and research, and am not able to reproduce this. What version of IE driver are you using?

@JoshuaKGoldberg
Copy link
Author

I'm on https://selenium-release.storage.googleapis.com/3.9: IEDriverServer_Win32_3.9.0.zip.

@stephenmathieson
Copy link
Member

I still haven't been able to reproduce this. Is there any way you can setup a minimal reproduction repo/gist?

@JoshuaKGoldberg
Copy link
Author

I haven't been able to 😕 so I guess it's probably something convoluted on my end... ah well. Thanks for testing!

@stephenmathieson
Copy link
Member

Sure thing! Sorry I couldn't have been more help. Feel free to reopen of this comes up again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants