ATF javascript error, "Uncaught TypeError: Cannot read property 'getAttribute' of undefined"

bbf3562
Kilo Guru

Hi,

I am creating ATF steps for catalog item. When I test it on chrome, it failed on Set Variable Values(Catalog Item Form) step. I have checked the test screenshots and it look like it entered the form correctly and don't see field errors. Here is screenshot example,

find_real_file.png

When debugging it for specific error, I have found that it said, "Uncaught TypeError: Cannot read property 'getAttribute' of undefined",

find_real_file.png

I am not sure why I have that error. Does anyone know?

 

1 ACCEPTED SOLUTION

bbf3562
Kilo Guru

I found a solution to ignore that error that the ATF doesn't like is use try/catch method in catalog client script.

View solution in original post

3 REPLIES 3

nthumma
Giga Guru

ATF does not like DOM manipulations, Error means that particular form is doing some DOM manipulations on the client side.

Does that mean ATF doesn't like catalog client script that use GlideAjax using getAttribute()?

bbf3562
Kilo Guru

I found a solution to ignore that error that the ATF doesn't like is use try/catch method in catalog client script.