Adding selenium session handling