Are you sure you're not using any browser actions in the script?
It would be great if you attached a test script to your answer.
How to add cookies to your browser and how to change screen resolution
Moved
Support