Class TemporaryChangedTimeout

  • All Implemented Interfaces:
    AutoCloseable

    public class TemporaryChangedTimeout
    extends Object
    implements AutoCloseable
    An Autocloaseable that allows to temporarily change the implicit timeout
    • 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 Selenium
        unit - unit of the timeout