Script to add or set header not working

I am trying to set a header using script as below. But its showing script error on click of submit.

setHeader(singletabspace)sl-page: master

Is that your entire script? You need at least 1 navigate command after that to load the page you want to test.

Suppose I want to test I have entered the URL in the URL text input box. I just want to set a header when loading the same I don’t want to navigate anywhere. Based on the header my webpage loads differently.

You still need a navigate command in the script. It can be “navigate %URL%” which will navigate to whatever URL was in the URL input but if a script is present it completely takes over the testing flow.