question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Firefox: browserClient.closeBrowserChildWindow is not a function

See original GitHub issue

What is your Scenario?

I have multiple windows running and test with Firefox browser.

What is the Current behavior?

Testcafe throws

 Unhandled promise rejection:
      TypeError: browserClient.closeBrowserChildWindow is not a function

What is the Expected behavior?

The error shouldn’t be thrown. This used to work on v1.18, and if switch to chrome the test is passed.

What is your public website URL? (or attach your complete example)

https://testcafe.io/

What is your TestCafe test code?

fixture `Microsoft DevBlogs Login page`
    .page('https://devblogs.microsoft.com/');

test('should pass', async (t) => {
await t
    .click('.login-but') 
    .click('.nsl-button-google') 
    .closeWindow();
});

Your complete configuration file

No response

Your complete test report


   1) Unhandled promise rejection:
      
      TypeError: browserClient.closeBrowserChildWindow is not a function

      Browser: Firefox 104.0 / macOS 10.15

Screenshots

No response

Steps to Reproduce

  1. Try the testcode
  2. Run tests with firefox browser.

TestCafe version

2.0.0

Node.js version

v16.15.1

Command-line arguments

testcafe firefox test.js

Browser name(s) and version(s)

No response

Platform(s) and version(s)

No response

Other

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
miherlosevcommented, Sep 12, 2022

Hi @florachen-okta

Thank you for the shared information. I’ve reproduced the issue.

0reactions
amiablea2commented, Dec 13, 2022
  • Fails for Chrome 102 as well:
  • testcafe: “2.1.0”,
Unhandled promise rejection:
    TypeError: browserClient.closeBrowserChildWindow is not a function
   at BrowserProviderPluginHost.closeBrowserChildWindow (.../node_modules/testcafe/src/browser/provider/built-in/dedicated/base.js:108:30)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Firefox window.open not a function - javascript - Stack Overflow
Now this code in firefox return me this error: TypeError: window. open is not a function var open = window. open("link.
Read more >
TypeError: "x" is not a function - JavaScript - MDN Web Docs
The JavaScript exception "is not a function" occurs when there was an attempt to call a value from a function, but the value...
Read more >
Firefox does not work - Common fixes to get you back up and ...
Find solutions to Firefox issues like crashing, not starting, slowness and websites not loading.
Read more >
My javascript is not working on Firefox - Mozilla Support
Javascript is not dissabled in my firefox browser, and I am using the latest ... <script language="javascript"> function namechecker() { var ...
Read more >
Fix "The bookmarks and history system will not be functional ...
This article explains what to do if you see the error message “The bookmarks and history system will not be functional” when you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found