Ejemplo n.º 1
0
 public Wait(WebDriverWait webDriverWait, IWebElementComposer webElementComposer, IDriverWrapper driverWrapper)
 {
     this.webDriverWait      = webDriverWait;
     this.webElementComposer = webElementComposer;
     this.driverWrapper      = driverWrapper;
     defaultTimeout          = webDriverWait.Timeout;
 }
Ejemplo n.º 2
0
        public void Setup()
        {
            var driverConfig = new DriverConfiguration()
                               .Bind();

            driverWrapper      = new DriverWrapper(new ChromeDriver(driverConfig.DriverPath), driverConfig);
            highliter          = new Highliter(driverWrapper);
            webElementComposer = new WebElementComposer(driverWrapper, highliter);
            wait = new Wait(new WebDriverWait(driverWrapper.Driver, TimeSpan.FromSeconds(driverConfig.DefaultTimeout)), webElementComposer);
        }
 public ExternalSitePageFactory(IDriverWrapper driverWrapper, IWait wait, IWebElementComposer webElementComposer)
 {
     this.driverWrapper      = driverWrapper;
     this.wait               = wait;
     this.webElementComposer = webElementComposer;
 }
 public Highliter(IDriverWrapper driverWrapper)
 {
     this.driverWrapper = driverWrapper;
 }
 public HomePageFactory(IDriverWrapper driverWrapper)
 {
     this.driverWrapper = driverWrapper;
 }
 public HomePage(IDriverWrapper driverWrapper) : base(driverWrapper)
 {
 }
 public HomePage(IDriverWrapper driverWrapper, string path) : base(driverWrapper, path)
 {
 }
 public HomePage(IDriverWrapper driverWrapper, IWait wait, IWebElementComposer webElementComposer, string path) : base(driverWrapper, path)
 {
     this.wait = wait;
     this.webElementComposer = webElementComposer;
 }
Ejemplo n.º 9
0
 public WebElementComposer(IDriverWrapper driverWrapper, IHighliter highliter)
 {
     this.driverWrapper = driverWrapper;
     this.highliter     = highliter;
 }
Ejemplo n.º 10
0
 public SitePage(IDriverWrapper driverWrapper, IWait wait, IWebElementComposer webElementComposer) : base(driverWrapper)
 {
     this.wait = wait;
     this.webElementComposer = webElementComposer;
 }
Ejemplo n.º 11
0
 public BasePageObject(IDriverWrapper driverWrapper)
 {
     this.driverWrapper = driverWrapper;
 }
Ejemplo n.º 12
0
 public BasePageObject(IDriverWrapper driverWrapper, string path)
 {
     this.driverWrapper = driverWrapper;
     driverWrapper.Load(path);
 }