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

            savesearchbutton.WeClick();
        }
        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 CheckStartDate()
        {
            WebElementExtensions.FindElement("CssSelector", ".start-date");
            IList <IWebElement> startdate = Driver.WebDriver.FindElements(By.CssSelector(".start-date"));

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

            backtojobboard.WeClick();
        }
        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 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 MoreDetails()
        {
            WebElementExtensions.FindElement("ClassName", "details-link");
            IWebElement moredetails = Driver.WebDriver.FindElement(By.ClassName("details-link"));

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

            subjectfield.WeSendKeys(subject);
        }
Пример #11
0
        public static void LoginLink()
        {
            WebElementExtensions.FindElement("LinkText", "Log In");
            IWebElement loginLink = Driver.WebDriver.FindElement(By.LinkText("Log In"));

            loginLink.WeClick();
        }
        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 YourMessageField(string message)
        {
            WebElementExtensions.FindElement("Name", "your-message");
            IWebElement youremail = Driver.WebDriver.FindElement(By.Name("your-message"));

            youremail.WeSendKeys(message);
        }
        public static void YourNameField(string name)
        {
            WebElementExtensions.FindElement("Name", "your-name");
            IWebElement yourname = Driver.WebDriver.FindElement(By.Name("your-name"));

            yourname.WeSendKeys(name);
        }
Пример #16
0
        public static void LoginButton()
        {
            WebElementExtensions.FindElement("Id", "login");
            IWebElement Login = Driver.WebDriver.FindElement(By.Id("login"));

            Login.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();
        }
        public static void Keyword(string keyword)
        {
            WebElementExtensions.FindElement("Id", "keywords");
            IWebElement loginLink = Driver.WebDriver.FindElement(By.Id("keywords"));

            loginLink.WeSendKeys(keyword);
        }
Пример #20
0
        public static void ChangePasswordButton()
        {
            WebElementExtensions.FindElement("LinkText", "Change Password");
            IWebElement Login = Driver.WebDriver.FindElement(By.LinkText("Change Password"));

            Login.WeClick();
        }
Пример #21
0
        public static void JobsButton()
        {
            WebElementExtensions.FindElement("LinkText", "Jobs");
            IWebElement Login = Driver.WebDriver.FindElement(By.LinkText("Jobs"));

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

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

            jobsearchesbutton.WeClick();
        }
        public static void AddToBasket()
        {
            IWebElement requestdetails;

            WebElementExtensions.FindElement("LinkText", "Add to Basket");
            requestdetails = Driver.WebDriver.FindElement(By.LinkText("Add to Basket"));
            requestdetails.WeClick();
        }
        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);
        }
        public static void Location(string location)
        {
            WebElementExtensions.FindElement("Name", "location[]");
            IWebElement locationlist  = Driver.WebDriver.FindElement(By.Name("location[]"));
            var         selectElement = new SelectElement(locationlist);

            selectElement.SelectByText(location);
        }
        public static void RequestDetails()
        {
            WebElementExtensions.FindElement("LinkText", "Request Details");
            IWebElement requestdetails = Driver.WebDriver.FindElement(By.LinkText("Request Details"));

            WebElementExtensions.ScrollToElement(requestdetails);
            WebElementExtensions.SimulateClick(requestdetails);
        }
        public static void SendButton()
        {
            WebElementExtensions.FindElement("Name", "submit-request-detail");
            IWebElement send = Driver.WebDriver.FindElement(By.Name("submit-request-detail"));

            WebElementExtensions.ScrollToElement(send);
            WebElementExtensions.SimulateClick(send);
        }
        public static void DeleteApplication()
        {
            WebElementExtensions.FindElement("LinkText", "Delete");
            jobapplicationlist = Driver.WebDriver.FindElements(By.LinkText("Delete"));
            IWebElement deleteapplicationbutton = Driver.WebDriver.FindElement(By.LinkText("Delete"));

            deleteapplicationbutton.WeClick();
            BaseURL();
        }