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, 

the "Include on Page Load" is an option of the dependancy table:

find_real_file.png

This is the part thats custom to everyone, finding the dependancy thats loading everywhere and causing the issue. In the console, have you found the CSS thats causing the error?

This is what I found in the console: 

find_real_file.pngBut I go to the table named here like "Widgets Dependencies" and I am not able to find one named "css2" so I am not sure how to resolve the issue. 

find_real_file.png

Oh BTW, thanks for your help. 

Thats the issue that I mentioned before, actually finding the place where its linked. But since this is about CSS, go have a look at the portal CSS table (sp_css).

Here, try looking for the name or css containing your "fonts.googleapis.com/css2?family=Roboto", most probably it will be in the CSS field.

IF you find it, then you need to find to which depedency its linked to. Note the name of the css. Open up the CSS Include table (sp_css_include) and search for the CSS in "style sheet".

If you DONT find the googlefont in the css table, look in the CSS include table anyway, but this time in the "css file url" field. CSS includes can be URLs or Style Sheets.

Hopefully youve found the css include by now, in the record is a related list to all dependencies. Open those and try removing the "include on page load" until the ATF works.

 

Kind regards
Oliver

Hi again Oliver, 

First thanks for all your help. I found CSS include in the (sp_css_include) table but it does n´t have any Dependency as you will see.

find_real_file.png