DevExpress / testcafe

A Node.js tool to automate end-to-end web testing.
https://testcafe.io
MIT License
9.82k stars 672 forks source link

Error in iFrame on IE and Edge #3343

Closed feugy closed 5 years ago

feugy commented 5 years ago

What is your Test Scenario?

The tested page is a payment page, implementing CyberSource's Secure Acceptance workflow (a payment processor):

What is the Current behavior?

Using Edge or IE, the built iFrame fails because of testCafé's injected code:

"TypeError: cannot access property "clientHeight" of a null or undefined reference
at h (eval code:11:10347)
at a (http://192.168.10.177:64304/testcafe-ui.js:1:21034)
at e (http://192.168.10.177:64304/testcafe-ui.js:1:18357)
at o.prototype.start (http://192.168.10.177:64304/testcafe-driver.js:1:57797)
at Anonymous function (eval code:23:5)
at Anonymous function (eval code:13:6)
at eval code (eval code:12:2)
at t.prototype.iframeReadyToInitHandler (http://192.168.10.177:64304/hammerhead.js:5:4814)
at e.prototype.emit (http://192.168.10.177:64304/hammerhead.js:10:19304)
at t.prototype.\_emitEvents (http://192.168.10.177:64304/hammerhead.js:5:3511)"

Please note this is not happening without testCafé. When I manually submit the form on those browsers, it works as expected.

Another important finding: this seems a regression introduced with 0.23.3. With versions up to 0.23.2 work as expected.

What is the Expected behavior?

As for chromium-based browsers and firefox, the iFrame should not receive any error.

What is your web application and your TestCafe test code?

Unfortunately, I cannot share code at the moment. I'll try to make a test case in the near future.

Your Environment details:

feugy commented 5 years ago

@LavrovArtem thanks a million!

LavrovArtem commented 5 years ago

@feugy, You are welcome! We'll inform you when the new version with this fix is available.

LavrovArtem commented 5 years ago

@feugy, The problem was fixed in testcafe@1.0.0-alpha.3.

lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests. For TestCafe API, usage and configuration inquiries, we recommend asking them on StackOverflow.