This looks to be very repetitive. I'd suggest extracting the web driver setup in a factory class. This will allow to switch test browsers more easily (i.e. use chrome driver for testing on webkit)