Skip to content

TestCafe Salesforce Automation - hammerhead Error "This page has an error. You might need to refresh it" #6459

@ArunjaiAcc

Description

@ArunjaiAcc

What is your Test Scenario?

Via automation tried to navigate to create firm/ create contact layout

What is the Current behavior?

Error on opening the page via test cafe

[Cannot read property 'hammerhead|event|internal-blur' of null]
_ cancelInternalEvents()@http://192.168.0.9:52557/hammerhead.js:13:27910
{anonymous}()@http://192.168.0.9:52557/hammerhead.js:12:6
HTMLElement.dispatchEvent()@http://192.168.0.9:52557/hammerhead.js:13:27061
me.handleBlur()@https://preqin--uat.lightning.force.com/components/lightning/input.js:1:35128

What is the Expected behavior?

The page should load successfully and the user able to add the details

What is your web application and your TestCafe test code?

https://preqin--uat.lightning.force.com/ Debug Logs: [Cannot read property 'hammerhead|event|internal-blur' of null] _ cancelInternalEvents()@http://192.168.0.9:52557/hammerhead.js:13:27910 {anonymous}()@http://192.168.0.9:52557/hammerhead.js:12:6 HTMLElement.dispatchEvent()@http://192.168.0.9:52557/hammerhead.js:13:27061 me.handleBlur()@https://preqin--uat.lightning.force.com/components/lightning/input.js:1:35128
 
import { Selector } from 'testcafe';

fixture New Fixture
.page Env Url;

test('New Test', async (t: TestController) => {
await t
.click('#username')
.typeText('#username', '*')
.click('#password')
.typeText('#password', '
')
.click('#Login')
.click(Selector('button').withText('Show Navigation Menu'))
.click(Selector('#navMenuList span').withText('Firms').nth(1))
.click(Selector('#brandBand_1 div').withText('New').nth(7))
.click(Selector('#brandBand_2 span').withText('Next'))
.wait(8000);
});



Screenshots:

Steps to Reproduce:

  1. Go to my website ...
  2. Navigate to FIrm/Contact page
  3. Click on new
  4. See the error (Viewed only via automation)

Your Environment details:

  • testcafe version: <1.15.2>
  • node.js version: <v12.18.2>
  • command-line arguments:
  • browser name and version: <Version 92.0.4515.131>
  • platform and version: < Windows>
  • other:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions