code snippets for Selenium