Ejemplo n.º 1
0
 public LoginPage(RoboBrowser browser) : base(browser)
 {
     Name     = "LoginPage";
     Username = ControlFactory.Create <ITextBox>("Login1_UserName");
     Password = ControlFactory.Create <ITextBox>("Login1_Password");
     Submit   = ControlFactory.Create <IButton>("Login1_Login");
 }
Ejemplo n.º 2
0
        public Control(Scope browser, string Id)
        {
            this.Id      = Id;
            this.browser = browser;
            RoboBrowser rbrowser = new RoboBrowser(browser.FindId(Id));

            controlFactory = new ControlFactory(rbrowser, true);
            element        = new Lazy <ElementScope>(() => browser.FindId(Id));
        }
Ejemplo n.º 3
0
        public Control(BrowserSession browser, string Id, Dictionary <string, object> properties)
        {
            this.Id      = Id;
            this.browser = browser;
            _properties  = properties;
            RoboBrowser rbrowser = new RoboBrowser(browser.FindId(Id));

            controlFactory = new ControlFactory(rbrowser, true);
        }
Ejemplo n.º 4
0
        public RoboBrowser GetBrowser()
        {
            RoboBrowser          browser = new RoboBrowser();
            SessionConfiguration config  = new SessionConfiguration();

            config.AppHost = options.Apphost;
            config.SSL     = options.SSL;

            if (options.BrowserType == BrowserType.Chrome)
            {
                config.Browser = Browser.Chrome;
                config.Driver  = typeof(ChromeProfile);
            }

            browser.browserSession = new BrowserSession(config);
            return(browser);
        }
Ejemplo n.º 5
0
 public V2OHomePage(RoboBrowser browser) : base(browser)
 {
     PlaceOrderButton = ControlFactory.Create <IButton>("__tab_ct100_cphApp_tcMain_TabPanel2");
 }
Ejemplo n.º 6
0
 public ProjectManagementPage(RoboBrowser browser) : base(browser)
 {
     ProjectManagementGrid = ControlFactory.Create <IGrid>("ProjectManagementGrid");
     ProjectManagementGrid.AddControl <ITextBox>("Text");
 }
Ejemplo n.º 7
0
 public HomePage(RoboBrowser browser) : base(browser)
 {
     BlueprintButton  = ControlFactory.Create <IButton>("bluePrintMenu");
     GotoValleyButton = ControlFactory.Create <IButton>("ValyVirtualOfficemenu");
 }
Ejemplo n.º 8
0
 public ControlFactory(RoboBrowser browser)
 {
     this.browser = browser.browserSession;
 }
Ejemplo n.º 9
0
 public ControlFactory(RoboBrowser browser, bool IsGrid)
 {
     this.browser = browser.SessionScope;
 }