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

Invalid calling object in IE 11 #1846

Closed
sophalch opened this issue Sep 18, 2018 · 6 comments
Closed

Invalid calling object in IE 11 #1846

sophalch opened this issue Sep 18, 2018 · 6 comments
Assignees
Labels
AREA: client STATE: Auto-locked Issues that were automatically locked by the Lock bot SYSTEM: utils TYPE: bug
Milestone

Comments

@sophalch
Copy link

Are you requesting a feature or reporting a bug?

Bug

What is the current behavior?

Test failed with "Invalid calling object" in IE 11 only. Chrome, Edge, and Firefox are fine.

  1. Error on page ".../6CF134EFF8788553F5A82C19A750B4DC.cache.html":

Invalid calling object

Browser: IE 11.0.0 / Windows 10.0.0

33 | .click(Selector('#search'))

 at click (C:\sp\tests\ic\tests\login.js:33:6)
 at test (C:\sp\tests\ic\tests\login.js:13:1)
 at markeredfn (C:\Users\sp\AppData\Roaming\npm\node_modules\testcafe\src\api\wrap-test-function.js:18:28)
 at <anonymous> (C:\Users\sp\AppData\Roaming\npm\node_modules\testcafe\src\api\wrap-test-function.js:8:5)
 at fn (C:\Users\sp\AppData\Roaming\npm\node_modules\testcafe\src\test-run\index.js:238:19)
 at TestRun._executeTestFn (C:\Users\sp\AppData\Roaming\npm\node_modules\testcafe\src\test-run\index.js:234:38)
 at _executeTestFn (C:\Users\sp\AppData\Roaming\npm\node_modules\testcafe\src\test-run\index.js:279:24)

What is the expected behavior?

Expect test to pass

Specify your

  • operating system: Windows 10
  • testcafe version: 0.22.0
  • node.js version: 8.9.4

Since this is an internal site with login credential required, I'm not sure how you could replicate it.
This site is using multiple iframes, and when the search button is pressed, the issue appears as above.

Please let me know how I could debug it.

@AndreyBelym
Copy link
Contributor

AndreyBelym commented Sep 18, 2018

Hi @sophalch! Unfortunately I can't reproduce the issue without an example. Could you dump HTML sources of your web site and share them? If it's a regression, you can try to install previous TestCafe versions: TestCafe Release Tags

@AndreyBelym AndreyBelym self-assigned this Sep 18, 2018
@sophalch
Copy link
Author

Hi @AndreyBelym, this is the test script:

import { Selector } from 'testcafe'

fixture `Test`
  .page('contentdev-intelliconnect.wkasiapacific.com')

test('Main page', async t => {
  await t
    .wait(3000)
    .typeText(Selector('#username'), 'testuser2018')
    .typeText(Selector('#password'), 'password')
    .click(Selector('button[type=submit]'))
    .wait(5000)

    // search
    .typeText(Selector('#searchInput_comboBox'), 'tax')
    .click(Selector('#searchGoBtn'))
    .wait(5000)
})

@miherlosev
Copy link
Contributor

Hi @sophalch

I've encountered the problem when loading the test page - 'Sign On Error. Authentication Failed...' (
see this video) .
Is it a problem with your site or do we need to perform some actions on our side (your site check location and etc.) to reproduce the issue?

@sophalch
Copy link
Author

sophalch commented Oct 3, 2018

Hi @miherlosev, I'm surprised you didn't get to the login screen at all. There shouldn't be anything else that need to be done.

Could you try this site instead with the credentials above?

https://intelliconnect.wkasiapacific.com

It should redirect to the login page at:

https://login.wkasiapacific.com/idp/SSO.saml2

Thanks

@miherlosev
Copy link
Contributor

I've reproduce the problem.

 "http://intelliconnect.wkasiapacific.com/scion/secure/6CF134EFF8788553F5A82C19A750B4DC.cache.html":

      TypeError: Invalid calling object
         at find (http://localhost:1337/hammerhead.js:15431:11)
         at Anonymous function
      (http://localhost:1337/hammerhead.js:16453:16)
         at processHtmlInternal
      (http://localhost:1337/hammerhead.js:16437:11)
         at cleanUpHtml (http://localhost:1337/hammerhead.js:16450:11)
         at getter (http://localhost:1337/hammerhead.js:11815:24)
         at VF

   (http://intelliconnect.wkasiapacific.com/scion/secure/6CF134EFF8788553F5A82C19A750B4DC.cache.html:17428:106)
         at btc

   (http://intelliconnect.wkasiapacific.com/scion/secure/6CF134EFF8788553F5A82C19A750B4DC.cache.html:13924:50)
         at bvl

   (http://intelliconnect.wkasiapacific.com/scion/secure/6CF134EFF8788553F5A82C19A750B4DC.cache.html:20422:9942)
         at Pvl

   (http://intelliconnect.wkasiapacific.com/scion/secure/6CF134EFF8788553F5A82C19A750B4DC.cache.html:20422:15237)
         at nNe

   (http://intelliconnect.wkasiapacific.com/scion/secure/6CF134EFF8788553F5A82C19A750B4DC.cache.html:20292:22053)

@AndreyBelym AndreyBelym transferred this issue from DevExpress/testcafe Nov 22, 2018
@LavrovArtem LavrovArtem added this to the Sprint #22 milestone Nov 22, 2018
LavrovArtem added a commit to LavrovArtem/testcafe-hammerhead that referenced this issue Nov 27, 2018
AndreyBelym pushed a commit to AndreyBelym/testcafe-hammerhead that referenced this issue Feb 28, 2019
…ress#1856)

* fix `Invalid calling object in IE 11` (close DevExpress#1846)

* add test
@lock
Copy link

lock bot commented Mar 28, 2019

This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow.

@lock lock bot added the STATE: Auto-locked Issues that were automatically locked by the Lock bot label Mar 28, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Mar 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
AREA: client STATE: Auto-locked Issues that were automatically locked by the Lock bot SYSTEM: utils TYPE: bug
Projects
None yet
Development

No branches or pull requests

4 participants