public Element(IWebDriver driver, ISafeExecution safeExecution) { _driver = driver; _safeExecution = safeExecution; Initialize(); }
public Navigation(IWebDriver driver, ISafeExecution safeExecution) { _driver = driver; _safeExecution = safeExecution; Initialize(); }
public void Initialize() { _driver = SingletonWebDriver.GetInstance(_webDriverType, _driverServerDirectory).GetDriver(); _screenCapture = new ScreenCapture(_pathEvidence); _safeExecution = new SafeExecution(_screenCapture); Element = new Element(_driver, _safeExecution); Navigation = new Navigation(_driver, _safeExecution); }