Pagewait command should only be used when you are clicking on a link that opens up a new page. It should not be used when you click on a link that does not load a new page.
This is a correct example of how to use pagewait
Click on command to see examples & comments
Description: Makes the scripting engine wait until the next page finishes loading before carrying out the next command.: