public DemoQASteps(IObjectContainer objectContainer) { this._scenarioContext = objectContainer.Resolve <ScenarioContext>(); this.driver = objectContainer.Resolve <IWebDriver>(); this.homePage = objectContainer.Resolve <HomePage>(); this.elementsPage = objectContainer.Resolve <ElementsPage>(); }
private void Awake() { if (Instance == null) { Instance = this; } else { Destroy(this.gameObject); } }
public TextboxSteps(IWebDriver browser) : base(browser) { _browser = browser; _elementsPage = new ElementsPage(_browser); }
public void WhenIAmAcessingPageUsingPageObject() { var webDriver = (RemoteWebDriver)Browser.Current; this.elementsPage = webDriver.GoTo <ElementsPage>("http://localhost:{0}/Elements.html".FInv(Configuration.ServerPort)); }