ATF - Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules

Reddy26
Tera Contributor

I was facing the below error while asserting a text on a change form .There was a error message generated by g_form.addErrorMessage(). Ia m trying to validate whether its present on the form

Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules

find_real_file.png

find_real_file.png

find_real_file.png

12 REPLIES 12

Hi Eduardo, 

we will find a solution (hopefully)!

Well, since the CSS is loaded on 3 of your Themes, its always being loaded by any portals using those themes.

To test if ATF would work without the CSS, note the 3 themes and then remove the CSS from all of them. And then give ATF a try if that helped.

Curiously, we use Roboto too, but included it into our main CSS for our portal like this:

@import url('https://fonts.googleapis.com/css?family=Roboto');
@font-face {
  font-family: 'Roboto';
  src: url('https://fonts.googleapis.com/css?family=Roboto');
  font-weight: normal;
  font-style: normal;
}

 

Kind regards
Oliver

Eduardo Vilchis
Kilo Contributor

Hi Oliver, 

 

Thanks so much for all your help. See you.

 

Phonsie Hevey1
Tera Expert

I think this maybe solved in a future release

https://docs.servicenow.com/en-US/bundle/sandiego-release-notes/page/release-notes/quality/sandiego-patch-2.html mentions KB1116235 

Intended Fix Version

  Rome Patch 9
  Tokyo

Fixed In

  San Diego Patch 2