Fix various integration test problems.

- Specify browser window size for more consistent result. 
- Replace unstable 'jquery' Selenium selector to 'css'.