New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 901394 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug-Regression



Sign in to add a comment

Not able to search for css/xpath of elements hidden within a iframe.

Reported by webpacsa...@gmail.com, Nov 2

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36

Steps to reproduce the problem:
1. Visit site that has iframe with elements to click inside
2. Click f12 and then cntrl f the name of the css path
3. Verify that the element can't be found in till you dig through the DOM with the mouse cursor tool

What is the expected behavior?
When #rightButtonsContainer > input.bottomButton.bottomButton-annotate.ng-pristine.ng-untouched.ng-valid path is inside and iframe, dev tools should be able to find it.

What went wrong?
Selenium tests with frame switch to iframe can't find it. Neither a basic search on dev tools.

Did this work before? Yes Version 69 was fine

Chrome version: 70.0.3538.77  Channel: stable
OS Version: 10.0
Flash Version: 

Urgent for our testing to occur
 
Labels: Needs-Bisect Needs-Triage-M70
Cc: krajshree@chromium.org
Labels: Triaged-ET Needs-Feedback
webpacsautomation1@ - Thanks for filing the issue...!!

Could you please provide a sample test file/url to test the issue from TE-end.
This will help us in triaging the issue further.

Thanks...!!
So I have an element in an I-Frame, when I search on that element with the
dev tools it can't be found from the highest level in-till I manually click
through the DOM on dev tools and expand the parent element pf that
I-FRAME.   Its like the I frame doesn't show in the dev tools till i expand
the parent div , I expand that parent div and I see the Iframe element
flash that purple color like it just loaded. I used to be able to just
paste the css selector in the dev tool and it would find that element even
if it was embedded in an Iframe.

<div id="imageViewer">
       <iframe>Element I am searching for</iframe>
</div>
Project Member

Comment 4 by sheriffbot@chromium.org, Nov 5

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: Needs-Feedback
Tried testing the issue on win-10 using chrome reported version #70.0.3538.77   and latest canary #72.0.3602.0 .
Attached a screen cast for reference.

Following are the steps followed to reproduce the issue.
------------
1. Opened a html file in chrome by using the code given at comment #3.
2. Clicked f12 and then cntrl f the name of the css path i.e #rightButtonsContainer > input.bottomButton.bottomButton-annotate.ng-pristine.ng-untouched.ng.
3. Observed that the element couldn't be found and also couldn't dig through the DOM with the mouse cursor tool.

webpacsautomation1@ - Could you please check the attached screen cast and please let us know if anything missed from our end. Also please check the issue on latest canary #72.0.3602.0 by creating a new profile without any apps and extensions and please let us know if the issue still persist or not.
If possible please provide a screen cast for better understanding of the issue.

Thanks...!!
901394.mp4
1.5 MB View Download
Attached is a short clip demonstrating the behavior.

The steps are almost exactly the same as what you had posted to reproduce
it.

I believe expected behavior is that I should be able to find that
element #rightButtonsContainer >
input.bottomButton.bottomButton-annotate.ng-pristine.ng-untouched.ng-valid
even though its inside an iframe on the DOM by searching via dev tools. I
search for the element using the search bar and hit enter. It does not
appear until I use the mouse tool to hover over and area on the page where
the element exist.

From a code perspective I used to use selenium driver.switch.frame(0) . My
work around is to driver.findElement(By.id("imageDisplayManagerFrame"))
which is the specific Iframe element. But this fix is only working for
chrome 69 via sauce labs.

Much appreciated,

John
Project Member

Comment 7 by sheriffbot@chromium.org, Nov 6

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: TE-NeedsTriageHelp
As per comment #6, it seems to be related to selenium driver which is out of TE-scope. Hence, adding label TE-NeedsTriageHelp for further investigation from dev team.

Thanks...!!
Owner: l...@chromium.org
Status: Assigned (was: Unconfirmed)

Sign in to add a comment