Esempio n. 1
0
        public void TargetInfoChanged(TargetInfo targetInfo)
        {
            var previousUrl = _targetInfo.Url;

            _targetInfo = targetInfo;

            if (!_isInitialized && (_targetInfo.Type != "page" || _targetInfo.Url != string.Empty))
            {
                _isInitialized = true;
                InitilizedTaskWrapper.SetResult(true);
            }

            if (previousUrl != targetInfo.Url)
            {
                _browser.ChangeTarget(targetInfo);
            }
        }
Esempio n. 2
0
        internal void TargetInfoChanged(TargetInfo targetInfo)
        {
            var previousUrl = _targetInfo.Url;

            _targetInfo = targetInfo;

            if (!IsInitialized && (_targetInfo.Type != TargetType.Page || _targetInfo.Url != string.Empty))
            {
                IsInitialized = true;
                InitilizedTaskWrapper.SetResult(true);
                return;
            }

            if (previousUrl != targetInfo.Url)
            {
                Browser.ChangeTarget(this);
            }
        }
Esempio n. 3
0
        internal void TargetInfoChanged(TargetInfo targetInfo)
        {
            var previousUrl = TargetInfo.Url;

            TargetInfo = targetInfo;

            if (!IsInitialized && (TargetInfo.Type != TargetType.Page || !string.IsNullOrEmpty(TargetInfo.Url)))
            {
                IsInitialized = true;
                _initializedTaskWrapper.TrySetResult(true);
                return;
            }

            if (previousUrl != targetInfo.Url)
            {
                Browser.ChangeTarget(this);
            }
        }