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

switchFrame functionality doesnt work when tests run in web driver #2615

Open
abhijeetsondhi opened this issue Oct 3, 2024 · 1 comment
Open

Comments

@abhijeetsondhi
Copy link

There is a scenario where a page has an iframe whose source is different from the parent page. I have used switchFrame('#pasframe') functionality and then I was able to access DOM elements inside the iframe when tests were running in local chrome driver

Now when i run same tests using webDriverUrl i.e on grid, I am not able to find DOM elements inside iframe assuming switchFrame did not work as expected. Since the source of iframe is different, i am assuming this issue is related to CORS Policy. Can you please suggest what can be done to solve the issue

@ptrthomas
Copy link
Member

I'm tagging this as help wanted. it sounds like an issue with the grid implementation. karate's code has been tested to work for "native" chrome. I strongly recommend you or your org take a look at the code and contribute a fix. of course after making sure the third party grid is not the issue

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

No branches or pull requests

2 participants