Class TemporaryChangedTimeout
- java.lang.Object
-
- com.github.loyada.jdollarx.singlebrowser.TemporaryChangedTimeout
-
- All Implemented Interfaces:
AutoCloseable
public class TemporaryChangedTimeout extends Object implements AutoCloseable
An Autocloaseable that allows to temporarily change the implicit timeout
-
-
Constructor Summary
Constructors Constructor Description TemporaryChangedTimeout(int implicitTimeout, TimeUnit unit)
Temporarily override the implicit timeout of Selenium.
-
-
-
Constructor Detail
-
TemporaryChangedTimeout
public TemporaryChangedTimeout(int implicitTimeout, TimeUnit unit)
Temporarily override the implicit timeout of Selenium. Useful when you perform "smart" operations that you know might not find the elements, and you want to speed it up.- Parameters:
implicitTimeout
- - implicit timeout for Seleniumunit
- unit of the timeout
-
-
Method Detail
-
close
public void close() throws Exception
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
-