Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switchToIframe not working with nested iframes. #332

Open
clintFortinbras opened this issue Apr 2, 2021 · 2 comments
Open

switchToIframe not working with nested iframes. #332

clintFortinbras opened this issue Apr 2, 2021 · 2 comments

Comments

@clintFortinbras
Copy link

I have two iframes nested within each other.
I find and switch to the first iframe.
From there
I can find but cannot switch to the second iframe i get
the following error message

invalid selector: An invalid or illegal selector was specified
(Session info: chrome=89.0.4389.90)
(Driver info: chromedriver=89.0.4389.23 (61b08ee2c50024bab004e48d2b1b083cdbdac579-refs/branch-heads/4389@{#294}),platform=Mac OS X 10.15.6 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 18 milliseconds

@clintFortinbras
Copy link
Author

Any ideas ?

@aik099 aik099 transferred this issue from minkphp/Mink May 3, 2021
@aik099
Copy link
Member

aik099 commented May 3, 2021

@clintFortinbras , I've moved the issue from the general Mink repo to the MinkSelenium2Driver repo (based on an error message text) because it looks like a driver-specific issue.

Looking at https://www.guru99.com/handling-iframes-selenium.html proves, that Selenium does support nested iframes, but it's crucial to specify the correct argument to the method, that does frame switching to make it work. Maybe the page I've mentioned above will help you out or Google search results by selenium nested frames keyword.

To help others diagnose the issue please post a reproducible test case, that consists of:

  • used HTML files
  • used PHP code

.

Apologies for the late response.

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

No branches or pull requests

2 participants