Exemple #1
0
        protected PageObject()
        {
            NavigateOnInit = true;
            ScopeLocator   = new PlainScopeLocator(CreateScopeBy);

            Owner = (TOwner)this;

            Report = new Report <TOwner>((TOwner)this, Log);

            PageUri = new UriProvider <TOwner>(this, GetUri, "URI");
        }
Exemple #2
0
        protected PageObject()
        {
            _context = AtataContext.Current
                       ?? throw new InvalidOperationException(
                                 $"Cannot instantiate {GetType().Name} because {nameof(AtataContext)}.{nameof(AtataContext.Current)} is null.");

            NavigateOnInit = true;
            ScopeLocator   = new PlainScopeLocator(CreateScopeBy);

            Owner = (TOwner)this;

            Report = new Report <TOwner>((TOwner)this, Log);

            PageUri = new UriProvider <TOwner>(this, GetUri, "URI");

            UIComponentResolver.InitPageObject <TOwner>(this);
        }