You need to use the Selenium Action Builder to access more complex actions, such as freezing (as the seanny123 answer demonstrates).
In addition, if you are working with a hang, you will have to dynamically wait for it to appear before you perform the next action (for example, using an explicit wait).
I put together an example on how to do this - you can see the full entry here .
source share