public static bool TryGetDynamicWaitingWebDriver(IWebDriver driver, out DynamicWaitingWebDriver dynamicWaitingWebDriver)
        {
            switch (driver)
            {
            case DynamicWaitingWebDriver dynamicDriver:
                dynamicWaitingWebDriver = dynamicDriver;
                return(true);

            case IWrapsDriver wrapsDriver when TryGetDynamicWaitingWebDriver(wrapsDriver.WrappedDriver, out dynamicWaitingWebDriver):
                return(true);

            default:
                dynamicWaitingWebDriver = null;
                return(false);
            }
        }
Beispiel #2
0
 internal DynamicWaitingSwitchTo(DynamicWaitingWebDriver dynamicWaitingWebDriver)
 {
     _dynamicWaitingWebDriver = dynamicWaitingWebDriver;
 }