Added timeout support for selenium.