Пример #1
0
 public bool IsElementDisplayed(string navigationbar)
 {
     try
     {
         return(_wait.WaitForElement(navigationbar).Displayed);
     }
     catch (Exception)
     {
         return(false);
     }
 }
Пример #2
0
        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();
        }
Пример #3
0
 public CalendarDraw(IWebDriver driver)
 {
     Driver = driver;
     Waits.WaitForElement(driver, By.CssSelector("div[class='drawer-tab-content active']"));
     PageFactory.InitElements(driver, this);
 }
Пример #4
0
 public void ClickOnSubmit()
 {
     waits.WaitForElement(driver, submit).Click();
     //submit.Click();
 }
Пример #5
0
 public bool WindowOutputIsDisplayed()
 {
     return(waits.WaitForElement(Driver, WindowOutput).Displayed);
 }
Пример #6
0
 public void ClickSubmitButton()
 {
     waits.WaitForElement(driver, submitButton).Click();
     // submitButton.Click();
 }
Пример #7
0
 public string GetTextForMessage()
 {
     //return waits.MyDriverWait(driver, theMessage).Text;
     return(waits.WaitForElement(driver, thenIAmRegistered).Text);
 }
Пример #8
0
 public string GetTextForError()
 {
     return(waits.WaitForElement(driver, errorMsg).Text);
 }
Пример #9
0
 public string GetErrMsgText()
 {
     return(waits.WaitForElement(driver, errMsg).Text);
 }
 public void ClickOnYourCoronavirusStoryBtn()
 {
     Waits.WaitForElement(driver, yourCoronavirusStoryBtn).Click(); //// example
 }
Пример #11
0
 public PickFlightsPage(IWebDriver driver)
 {
     Driver = driver;
     Waits.WaitForElement(driver, By.CssSelector("span[ng-if='ShowGridFareText(FareStatus.Prices, fare)']"));
     PageFactory.InitElements(driver, this);
 }
Пример #12
0
 public void ClickOnNewsBtn()
 {
     Waits.WaitForElement(driver, newsBtn).Click();
 }
Пример #13
0
 public MyBookingsPage(IWebDriver driver)
 {
     Driver = driver;
     Waits.WaitForElement(driver, By.CssSelector("a[class='headerii-link']"));
     PageFactory.InitElements(driver, this);
 }
Пример #14
0
 public HoldLuggagePage(IWebDriver driver)
 {
     Driver = driver;
     Waits.WaitForElement(driver, By.CssSelector("input[ng-click='AddBagIfLimitNotReached(bagOption.Bag)']"));
     PageFactory.InitElements(driver, this);
 }
Пример #15
0
 public void ClickRegisterHereLink()
 {
     Waits.WaitForElement(Driver, PageSelector);
     RegisterHereLink.Click();
 }
Пример #16
0
 public RegisterPage(IWebDriver driver)
 {
     Driver = driver;
     Waits.WaitForElement(driver, By.CssSelector("input[id='EmailAddress']"));
     PageFactory.InitElements(driver, this);
 }
Пример #17
0
 public bool NunitPackageIsDisplayed()
 {
     return(waits.WaitForElement(Driver, NunitPackage).Displayed);
 }
 public void ClickOnSubmitBtn()
 {
     Waits.WaitForElement(driver, submitBtn).Click();
 }
Пример #19
0
 public void ClickOnMaybeLaterBtnBtn()
 {
     Waits.WaitForElement(driver, maybeLaterBtn).Click();
 }
Пример #20
0
 public HelpingHandPage(IWebDriver driver)
 {
     Driver = driver;
     Waits.WaitForElement(driver, By.CssSelector("button[class='ej-button rounded-corners']"));
     PageFactory.InitElements(driver, this);
 }
Пример #21
0
 public MainHeaderPage(IWebDriver driver)
 {
     Driver = driver;
     Waits.WaitForElement(driver, By.CssSelector("div[class='main-header']"));
     PageFactory.InitElements(driver, this);
 }