Provides the ability to produce Page Objects modeling a page. This class cannot be inherited.
 public LoginPage()
 {
     mobileGeneric = new MobileGeneric();
     locatorHelper = new LocatorHelper(Driver, Config.OperatingSystem.ToLower());
     PageFactory.InitElements(Driver, this);
 }
Beispiel #2
0
        //EAPageObject
        //[FindsBy(How = How.Id, Using ="TitleId")] // identify element, How = how to find
        //public IWebElement TitleId { get; set; }

        public pom()
        {
            PageFactory.InitElements(Props.driver, this);
        }
Beispiel #3
0
 public loginObj()
 {
     PageFactory.InitElements(Props.driver, this);
 }
Beispiel #4
0
 public TablePage() //pom
 {
     PageFactory.InitElements(Driver, this);
 }
Beispiel #5
0
        /// <summary>
        /// Asserts that getElement yields an element which can be interacted with, with no constraints on element lookups
        /// </summary>
        private void AssertFindsElement(object page, Func <IWebElement> getElement)
        {
            PageFactory.InitElements(mockDriver, page);

            AssertFoundElement(getElement());
        }