Remove unsupported waitforElementStyle from Selenium script, and improve by adding other waits for page loads.