public static void UploadCV()
        {
            WebElementExtensions.FindElement("ClassName", "button");
            IWebElement uploadbutton = Driver.WebDriver.FindElement(By.ClassName("button"));

            uploadbutton.WeClick();
        }
        public static void YourEmailField(string email)
        {
            WebElementExtensions.FindElement("Name", "your-email");
            IWebElement youremail = Driver.WebDriver.FindElement(By.Name("your-email"));

            youremail.WeSendKeys(email);
        }
        public static void SubjectField(string subject)
        {
            WebElementExtensions.FindElement("Name", "your-subject");
            IWebElement subjectfield = Driver.WebDriver.FindElement(By.Name("your-subject"));

            subjectfield.WeSendKeys(subject);
        }
Exemple #4
0
        public static void ChangePasswordButton()
        {
            WebElementExtensions.FindElement("LinkText", "Change Password");
            IWebElement Login = Driver.WebDriver.FindElement(By.LinkText("Change Password"));

            Login.WeClick();
        }
        public static void Keyword(string keyword)
        {
            WebElementExtensions.FindElement("Id", "keywords");
            IWebElement loginLink = Driver.WebDriver.FindElement(By.Id("keywords"));

            loginLink.WeSendKeys(keyword);
        }
Exemple #6
0
        public static void LoginButton()
        {
            WebElementExtensions.FindElement("Id", "login");
            IWebElement Login = Driver.WebDriver.FindElement(By.Id("login"));

            Login.WeClick();
        }
        private IWebElement ClickAddAccessoryByDesc(string accessoryTitle)
        {
            bool               isFound        = false;
            IWebElement        element        = null;
            List <IWebElement> accessoryCards = Driver.FindElements(BY_ACCESSORY_CARD).ToList();

            foreach (var accessoryCard in accessoryCards)
            {
                string title = accessoryCard.FindElement(BY_ACCESORY_CARD_TITLE).Text;

                if (stringContainsIgnoreCase(title, accessoryTitle) || stringEqualsIgnoreCase(title, accessoryTitle))
                {
                    isFound = true;
                    element = accessoryCard;
                    IWebElement button = accessoryCard.FindElement(BY_ADD_BUTTON);
                    WebElementExtensions.clickElement(button);
                    DriverActions.waitForAjaxRequestToComplete();
                    break;
                }
            }
            if (!isFound)
            {
                Assert.Fail("Accessory with description {0} was not found", accessoryTitle);
            }

            return(element);
        }
        public static void SortByLatest()
        {
            WebElementExtensions.FindElement("CssSelector", ".vacancy-date.date");
            IList <IWebElement> posteddate = Driver.WebDriver.FindElements(By.CssSelector(".vacancy-date.date"));

            WebElementExtensions.ComparePostedDates(posteddate);
        }
        public static void SortByStartDate()
        {
            WebElementExtensions.FindElement("Id", "eclipse_recruitment_vacancy_sort");
            IWebElement sortby = Driver.WebDriver.FindElement(By.Id("eclipse_recruitment_vacancy_sort"));

            sortby.WeSendKeys(Keys.Down);
        }
        public static void BackToJobBoardButton()
        {
            WebElementExtensions.FindElement("CssSelector", ".back-button.button");
            IWebElement backtojobboard = Driver.WebDriver.FindElement(By.CssSelector(".back-button.button"));

            backtojobboard.WeClick();
        }
 public static IWebDriver GenerateWebDriver(Browser browser)
 {
     WebDriver = GetDriver(browser);
     ReportProvider.LogInfoInAllReporters(Status.Info, $"Browser selected: {browser}");
     WebElementExtensions.SetWebDriver(WebDriver);
     return(WebDriver);
 }
        public static void SaveButton()
        {
            WebElementExtensions.FindElement("Id", "save_search");
            IWebElement savebutton = Driver.WebDriver.FindElement(By.Id("save_search"));

            savebutton.WeClick();
        }
        public static void SearchName(string name)
        {
            WebElementExtensions.FindElement("Id", "eclipse_recruitment_name");
            IWebElement searchname = Driver.WebDriver.FindElement(By.Id("eclipse_recruitment_name"));

            searchname.WeSendKeys(name);
        }
        public static void OpenCV()
        {
            WebElementExtensions.FindElement("LinkText", cvname);
            IWebElement opencv = Driver.WebDriver.FindElement(By.LinkText(cvname));

            opencv.WeClick();
        }
        public static void SearchJobsButton()
        {
            WebElementExtensions.FindElement("LinkText", "Search Jobs");
            IWebElement jobsearchesbutton = Driver.WebDriver.FindElement(By.LinkText("Search Jobs"));

            jobsearchesbutton.WeClick();
        }
        public static void CheckStartDate()
        {
            WebElementExtensions.FindElement("CssSelector", ".start-date");
            IList <IWebElement> startdate = Driver.WebDriver.FindElements(By.CssSelector(".start-date"));

            WebElementExtensions.CompareStartDates(startdate);
        }
        public static void ApplyButton()
        {
            WebElementExtensions.FindElement("LinkText", "Apply");
            IWebElement jobbasketbutton = Driver.WebDriver.FindElement(By.LinkText("Apply"));

            jobbasketbutton.WeClick();
        }
        public static void SaveSearch()
        {
            WebElementExtensions.FindElement("ClassName", "save-search-link");
            IWebElement savesearchbutton = Driver.WebDriver.FindElement(By.ClassName("save-search-link"));

            savesearchbutton.WeClick();
        }
        public void ClickRandomAccessoryCardAddButton()
        {
            GetRandomAccessoryCard();
            IWebElement addButton = SelectedAccessoryCard.FindElement(BY_ADD_BUTTON);

            WebElementExtensions.clickElement(addButton);
        }
        public static void MoreDetails()
        {
            WebElementExtensions.FindElement("ClassName", "details-link");
            IWebElement moredetails = Driver.WebDriver.FindElement(By.ClassName("details-link"));

            moredetails.WeClick();
        }
 internal ContactUsPage NavigateToContactUs()
 {
     WebElementExtensions.MoveToElement(SecurepaySupport);
     WebDriverExtensions.WaitForElement(DriverContext.Driver, SecurepayContactUs, 10);
     SecurepayContactUs.Click();
     return(GetInstance <ContactUsPage>());
 }
        public static void YourNameField(string name)
        {
            WebElementExtensions.FindElement("Name", "your-name");
            IWebElement yourname = Driver.WebDriver.FindElement(By.Name("your-name"));

            yourname.WeSendKeys(name);
        }
Exemple #23
0
        public static void JobsButton()
        {
            WebElementExtensions.FindElement("LinkText", "Jobs");
            IWebElement Login = Driver.WebDriver.FindElement(By.LinkText("Jobs"));

            Login.WeClick();
        }
        public static void YourMessageField(string message)
        {
            WebElementExtensions.FindElement("Name", "your-message");
            IWebElement youremail = Driver.WebDriver.FindElement(By.Name("your-message"));

            youremail.WeSendKeys(message);
        }
        public static void LoginLink()
        {
            WebElementExtensions.FindElement("LinkText", "Log In");
            IWebElement loginLink = Driver.WebDriver.FindElement(By.LinkText("Log In"));

            loginLink.WeClick();
        }
        public static void AttachCV()
        {
            WebElementExtensions.FindElement("Id", "eclipse_recruitment_cv_file");
            IWebElement attachcv = Driver.WebDriver.FindElement(By.Id("eclipse_recruitment_cv_file"));

            attachcv.WeSendKeys($@"D:\temp\EclipseWebAutomationV2\{cvname}");
        }
        public static void GoButton()
        {
            WebElementExtensions.FindElement("CssSelector", ".button.search.search-button");
            IWebElement gobutton = Driver.WebDriver.FindElement(By.CssSelector(".button.search.search-button"));

            gobutton.WeClick();
        }
 internal void Savebutton1()
 {
     Id.SendKeys("Test");
     Descid.SendKeys("Test Descrition");
     driver.FindElement(By.XPath(".//*[@id='TimeMaterialEditForm']/div/div[4]/div/span[1]/span/input[1]")).SendKeys("7.90");
     driver.FindElement(By.XPath("//input[@id='SaveButton']")).Click();
     WebElementExtensions.ElementExists(driver, By.Name(""), TimeSpan.FromDays(1));
 }
        public static void Discipline(string discipline)
        {
            WebElementExtensions.FindElement("Name", "discipline[]");
            IWebElement disciplinelist = Driver.WebDriver.FindElement(By.Name("discipline[]"));
            var         selectElement  = new SelectElement(disciplinelist);

            selectElement.SelectByText(discipline);
        }
        public static void Industry(string industry)
        {
            WebElementExtensions.FindElement("Name", "industry[]");
            IWebElement industrylist  = Driver.WebDriver.FindElement(By.Name("industry[]"));
            var         selectElement = new SelectElement(industrylist);

            selectElement.SelectByText(industry);
        }