public SyncWebDriver DefaultContent()
        {
            SyncWebDriver res  = null;
            var           mRes = new ManualResetEventSlim(true);

            mRes.Reset();
            Exception exception = null;

            Task.Run(async() =>
            {
                try
                {
                    var r = await locator.DefaultContent().ConfigureAwait(false);
                    if (r is WebDriver)
                    {
                        res = new SyncWebDriver(r as WebDriver);
                    }
                }
                catch (Exception ex)
                {
                    exception = ex;
                }

                mRes.Set();
            }

                     );
            mRes.Wait();
            if (exception != null)
            {
                throw exception;
            }
            return(res);
        }
        public SyncWebDriver Frame(int frameIndex)
        {
            SyncWebDriver res  = null;
            var           mRes = new ManualResetEventSlim(true);

            mRes.Reset();
            Task.Run(async() =>
            {
                var r = await locator.Frame(frameIndex);
                if (r is WebDriver)
                {
                    res = new SyncWebDriver(r as WebDriver);
                }
                mRes.Set();
            });
            mRes.Wait();
            return(res);
        }