public bool IsElementDisplayed(string navigationbar) { try { return(_wait.WaitForElement(navigationbar).Displayed); } catch (Exception) { return(false); } }
public void ClickManageBookingsLink() { Waits.WaitForElement(Driver, ManageBookingsLink); Thread.Sleep(2000); OpenQA.Selenium.Interactions.Actions act = new OpenQA.Selenium.Interactions.Actions(Driver); act.MoveToElement(ManageBookingsLink); act.Perform(); ManageBookingsLink.Click(); ManageBookingsLink.Click(); }
public CalendarDraw(IWebDriver driver) { Driver = driver; Waits.WaitForElement(driver, By.CssSelector("div[class='drawer-tab-content active']")); PageFactory.InitElements(driver, this); }
public void ClickOnSubmit() { waits.WaitForElement(driver, submit).Click(); //submit.Click(); }
public bool WindowOutputIsDisplayed() { return(waits.WaitForElement(Driver, WindowOutput).Displayed); }
public void ClickSubmitButton() { waits.WaitForElement(driver, submitButton).Click(); // submitButton.Click(); }
public string GetTextForMessage() { //return waits.MyDriverWait(driver, theMessage).Text; return(waits.WaitForElement(driver, thenIAmRegistered).Text); }
public string GetTextForError() { return(waits.WaitForElement(driver, errorMsg).Text); }
public string GetErrMsgText() { return(waits.WaitForElement(driver, errMsg).Text); }
public void ClickOnYourCoronavirusStoryBtn() { Waits.WaitForElement(driver, yourCoronavirusStoryBtn).Click(); //// example }
public PickFlightsPage(IWebDriver driver) { Driver = driver; Waits.WaitForElement(driver, By.CssSelector("span[ng-if='ShowGridFareText(FareStatus.Prices, fare)']")); PageFactory.InitElements(driver, this); }
public void ClickOnNewsBtn() { Waits.WaitForElement(driver, newsBtn).Click(); }
public MyBookingsPage(IWebDriver driver) { Driver = driver; Waits.WaitForElement(driver, By.CssSelector("a[class='headerii-link']")); PageFactory.InitElements(driver, this); }
public HoldLuggagePage(IWebDriver driver) { Driver = driver; Waits.WaitForElement(driver, By.CssSelector("input[ng-click='AddBagIfLimitNotReached(bagOption.Bag)']")); PageFactory.InitElements(driver, this); }
public void ClickRegisterHereLink() { Waits.WaitForElement(Driver, PageSelector); RegisterHereLink.Click(); }
public RegisterPage(IWebDriver driver) { Driver = driver; Waits.WaitForElement(driver, By.CssSelector("input[id='EmailAddress']")); PageFactory.InitElements(driver, this); }
public bool NunitPackageIsDisplayed() { return(waits.WaitForElement(Driver, NunitPackage).Displayed); }
public void ClickOnSubmitBtn() { Waits.WaitForElement(driver, submitBtn).Click(); }
public void ClickOnMaybeLaterBtnBtn() { Waits.WaitForElement(driver, maybeLaterBtn).Click(); }
public HelpingHandPage(IWebDriver driver) { Driver = driver; Waits.WaitForElement(driver, By.CssSelector("button[class='ej-button rounded-corners']")); PageFactory.InitElements(driver, this); }
public MainHeaderPage(IWebDriver driver) { Driver = driver; Waits.WaitForElement(driver, By.CssSelector("div[class='main-header']")); PageFactory.InitElements(driver, this); }