arn-arn
arn-arn

Reputation: 1377

testcafe is opening a browser and defaulting to /browser/connect/.... and unable to execute the test

I have been trying to run testcafe using nodejs but the browser is unable to proceed and execute the script. It is showing this error in the console: Unable to establish one or more of the specified browser connections. This can be caused by network issues or remote device failure.

I only have a simple test case.

fixture`Home page`
  .page`http://www.google.com`;  // specify the start page

test("The heading should be...", async t => {
  const title = Selector('h1');
  await t.expect('t').eql('t')
});

Can anyone help, please?

thanks.

Upvotes: 3

Views: 1316

Answers (1)

hdorgeval
hdorgeval

Reputation: 3030

It might be possible that you need to add the option --hostname localhost and/or the --proxy option to the TestCafe command-line.

Upvotes: 4

Related Questions