Practice of using selenium in scala