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

Unable to identify the web elements under iframe document content in IE10 or IE11 #6082

Closed
mmuthupa opened this issue Jun 27, 2018 · 5 comments

Comments

@mmuthupa
Copy link

mmuthupa commented Jun 27, 2018

Meta -

OS:
<-- Windows 7 -->
Selenium Version:
<-- 3.6.0, WebDriver -->
Browser:
<-- Internet Explorer 10 and 11 -->

IE Driver server Version:
<-- IE Driver server 3.6.0 -->

Expected Behavior -

The element should be identified in IE also

Actual Behavior -

The web elements are present under the iframe - Content Document - This can be identified using javascript but through selenium webdriver unable to identify any elements under that iframe - Content Document. This issue is only in IE where as it is working fine in chrome and Firefox browser

Steps to reproduce -

i can able to navigate or switch to that iframe but after switching to iframe the elements are present in content document, my html structure is like below

<iframe src = url of that particular page>

unable to identify any elements or tags under the iframe through selenium webdriver where as through java script document.getElementByTagsName("iframe").contentDocument after that able to identify the elements using script so please help to resolve the issue.

@mmuthupa mmuthupa changed the title OS: Windows 7 Unable to identify the web elements under iframe document content in IE10 or IE11 Jun 27, 2018
@jimevans
Copy link
Member

@mmuthupa You’ll need to provide a full repro case that includes a set of HTML files (or a public URL) against which to test. Locating elements in a frame via WebDriver is not broken for all IE users against all websites (see the WebDriver Herald website for a list of tests the IE driver is executed against and passing). If you’re using contentDocument to access the document in IE, remember that IE sandboxes frames pretty thoroughly, even moreso if the main and framed documents are from different domains. Also, if you’ve not configured IE’s Protected Mode settings properly for use with WebDriver, that is unlikely to work either.

@mmuthupa
Copy link
Author

@jimevans i should not share the companys website html page according to the rule, but what i understand from our development team is that the pages loaded under iframes are having CSRF Tokens(Cross Site Request Forgery Token) through AJAX. According to your suggestion enabled all the zones protected mode settings and tried disableing of all the security zones protected mode settings even though facing the same issue. Kindly suggest any solution.

@mmuthupa
Copy link
Author

mmuthupa commented Jul 3, 2018

Hi Team,

Any update on the above issue, application is protected with CSRF token, might be that could be the reason the selenium unable to access it? Kindly give any suggestion - how to crack it please. Also i don't know how to remove the label in the issue(6082 - R - awaiting answer)so kindly check and update the issue please

@jimevans
Copy link
Member

jimevans commented Jul 3, 2018

@mmuthupa No, there has been no update on the issue. Until and unless a reproduction case is provided that would allow the IE driver development team to investigate the issue, there can be no further updates. Please note that the repro does not have to be on the exact site that you’re testing against; a different demonstration site that behaves the same way would also be perfectly acceptible. Until someone is willing to provide such a sample site with sample code that clearly reproduces the issue, there is no action that can be taken on this issue as written.

@barancev
Copy link
Member

Closing the issue as there is no reproduction scenario provided.

@lock lock bot locked and limited conversation to collaborators Aug 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants