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"); }
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)); }
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); }
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); }
public V2OHomePage(RoboBrowser browser) : base(browser) { PlaceOrderButton = ControlFactory.Create <IButton>("__tab_ct100_cphApp_tcMain_TabPanel2"); }
public ProjectManagementPage(RoboBrowser browser) : base(browser) { ProjectManagementGrid = ControlFactory.Create <IGrid>("ProjectManagementGrid"); ProjectManagementGrid.AddControl <ITextBox>("Text"); }
public HomePage(RoboBrowser browser) : base(browser) { BlueprintButton = ControlFactory.Create <IButton>("bluePrintMenu"); GotoValleyButton = ControlFactory.Create <IButton>("ValyVirtualOfficemenu"); }
public ControlFactory(RoboBrowser browser) { this.browser = browser.browserSession; }
public ControlFactory(RoboBrowser browser, bool IsGrid) { this.browser = browser.SessionScope; }