Closed lukeis closed 8 years ago
Reported by barancev
on 2011-10-27 06:40:45
Reported by dawagner
on 2011-10-28 18:57:21
Thanks for the report. I can reproduce the bug with your test. I cannot reproduce the
problem on a simple test page that removes the iframe element when a child link is
clicked. How are you closing the frame?
The problem is that ChromeDriver waits indefinitely because it doesn't receive a load
finished event from the closing frame.
Reported by kkania@google.com
on 2011-11-15 21:04:38
Accepted
Reported by kkania@google.com
on 2012-01-12 19:16:17
NeedsClarification
I haven't debugged or run code analysis of tinymce plugin close-up. But I am interested
were you actually able to continue execution on parent page ? And could this have something
to do with the fact when tinymce editor is used, there exists also other iframes in
page ( like the text edit area for example ) . Could you show your similar example?
Also in case somebody else gets an idea of it.
Reported by santeri.vesalainen@enersize.com
on 2012-01-12 19:48:04
I think I've run into similar issue.
I test web application that is integrated with paypal.
It works like this:
1. user submits a form (that opens new tab in which user is redirected to web site
page)
2. java servlet validates POST request
3. java servlet sends request to paypal
4. java servlet redirects user to paypal in tab that was opened in step #1
This works fine for Firefox and IE.
But after clicking on submit button in Chrome, chromedriver doesn't return control
back.
I can attach chromedriver log, but unfortunately I can't provide any pages (well, it
probably wont help anyway without a servlet).
Reported by xHardCorexKid
on 2012-02-13 09:18:59
Encounter with this issue when created test for application using tinyMCE. After some
investigation locate string of js code that produce problem. In tinyMCE it looks like
this:
DOM.setAttrib(id + '_ifr', 'src', 'javascript:""'); // Prevent leak
It is simply set src attribute of iframe to 'javascript:""'. And this action hangs
chromedriver. There is simple example in archive to reproduce this issue. Note: you
can reproduce issue even if you remove code deleting popup from example.
As a work arround for this issue I plan to wrap DOM.setAttrib function inside test
programm an force it do nothing for described case.
Hope my help will be usefull. Please let me know if other solutions exist.
I will comment this issue when try trick with wrapping.
Reported by DSAstafiev
on 2012-08-08 09:04:08
Try solution mentioned above and it works fine. Js code:
var tempVar = tinymce.DOM.setAttrib;
tinymce.DOM.setAttrib = function(id, attr, val) {
if (attr == 'src' && val.trim().match(/javascript\s*:\s*("\s*"|'\s*')/)) {
return;
}
else {
tempVar.apply(this, arguments);
}
}
}())
All you need - simply execute this code in parent frame before calling function closing
current frame.
Reported by DSAstafiev
on 2012-08-09 14:36:44
@DSAstafiev thanks for analysis, and workaround. Awesome. :)
Did you run already it with my tinymce.com example eg. by adding a JavascriptExecutor
this workaround in parent frame?
I have no env up'n'running for this right now.
Reported by santeri.vesalainen
on 2012-08-09 15:16:04
We are running into this issue as well. Closing TinyMCE iFrame leaves Chrome driver
hanging indefinitely. The above Js code did not resolve this issue for me.
Reported by karl.hiner
on 2012-10-08 20:18:50
I have a similar problem in Firefox:
I have a page where a popup is created through iFrames.
- I use switchTo().frame("LookupWindow") to switch to the popup.
- I then successfully enter some text and look up a value
- Once the value is found, it is displayed as a hyperlink, and I click on on it (still
on the popup)
- The popup now closes (because I clicked on the value in the popup)
This all expected behavior and works fine. However, the code hangs after the statement
that clicks the value (which in turn closes the window). It waits forever, does not
report an error at all.
Reported by kaaskop
on 2012-10-30 14:54:00
Here is a site where you can recreate the problem:
http://dave.demo.vitalchek.com/NYC_UAT_FUTURE/logon.aspx
You'll have to go through a number of steps to get to the popup:
1. Login as Birth Certifier - birthcert/health
-- Home page is displayed
2. Click on Life Events.
Click on Birth/Start New case link
Enter the following:
First - Ana
Last - Banana
Date of Birth - Current Date
Sex - Female
Child's Medical record Number - 1
Verify Child's Medical record number - 1
Mother's medical record number - 2
Verify Mother's medical record number - 2
Click on Search button
Click on 'If case does not appear above start new case' button
-- The child page is displayed
3. On the Child Page
Enter the following:
Date of Birth - Current Date
Time of Birth - Current Time
Sex - Female
Has mother approved assignment of SSN for child? - Yes
Foundling Baby - No
Click Save Button
Click Validate Page button
-- The page is validated
4. Select Mother Attributes page (in left-hand side menu)
Mother's Education - Master's Degree
Was Mother Employed During Pregnancy? - Yes
Current / Most Recent Occupation - Teacher
Kind of Business or Industry - Education
Select the Non Hispanic (French Canadian German etc) radio button
Click on the looking glass icon -- THIS OPENS THE POPUP
Type in - Anglo Saxon, then click Search -- result is displayed
Click on the 'select' hyperlink -- THIS CLOSES THE POPUP AND HANGS WEBDRIVER
Reported by kaaskop
on 2012-11-02 13:34:32
I am running into a similar issue while creating a Document is Microsoft Office 365
Sequence of Steps -
1. Login to Microsoft Office 365.
2. Navigate to Team Site
3. Create a Document - (This results in Opening an IFrame)
4. Edit Document & Close Document (This results in closing the iframe)
On using the click() method to close the document, results in closing the iframe.
Now the execute control hangs in click() statement itself.
Webdriver Version - 2.27.0
FireFox Version - 19.02
Reported by praneel.redlapalle
on 2013-07-22 21:25:15
Closing the issue because it is related to chromedriver1 and is not actual anymore.
If you experience a similar problem with chromedriver2 please raise a new issue on
the chromedriver tracker [1]
[1] https://code.google.com/p/chromedriver/issues/list
Reported by barancev
on 2013-08-23 20:07:11
WontFix
Reported by luke.semerau
on 2015-09-17 18:13:59
Originally reported on Google Code with ID 2703
Reported by
santeri.vesalainen@enersize.com
on 2011-10-24 09:58:26