how to write script in selenium