In Katalon Studio, I have created a test whereby at some point I want to change an element's background colour to blue. I use this instruction in my script:
WebUI.executeJavaScript('document.querySelector(\'.content-header\').setAttribute(\'background\', \'blue\')', null)
and when I run the test, I get this in the Log Viewer:
So it seems the Javascript executed successfully.. but then why didn't I see any change in the browser? Shouldn't the change occur and then continue until the test is complete? Is it, in fact, not actually working?