public void Navigate(SoftUniPage softuniPage) { softuniPage.Navigate("https://softuni.bg/"); softuniPage.allCourses.Click(); softuniPage.course.Click(); }
public void TestInit() { _driver = new ChromeDriver(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)); _driver.Manage().Window.Maximize(); _loginpage = new LoginPage(_driver); _softunipage = new SoftUniPage(_driver); }
public void SetUp() { Initialize(); _softUniPage = new SoftUniPage(Driver); _qaAutomationPage = new QAAutomationPage(Driver); _softUniPage.NavigateTo(); }
public void SetUp() { Initialize(); Driver.Manage().Window.Maximize(); Driver.Navigate().GoToUrl("https://softuni.bg/"); _softUniPage = new SoftUniPage(Driver); }
public void Verify_UserIsCorrectlyNavigated_To_QAAutomationCoursePage() { SoftUniPage softUniPage = new SoftUniPage(Driver); softUniPage.ChangeSiteLanguageToEnglish(); softUniPage.ClickOnLinkFromMainMenu("Trainings"); softUniPage.ClickOnActiveModulesInOpenCoursesSection(); SoftUniQACoursePage softUniQACoursePage = softUniPage.GoToQAAutomationCourse(); Assert.AreEqual("QA Automation - May 2020", softUniQACoursePage.GetCourseTitle()); }
public void QaAutomationCoursePageContainsCorrectHeading() { var run = new SoftUniPage(this.Driver); var headings = run .GoToSoftUni() .OpenCoursePage() .GetHeadings(); Assert.Contains("QA Automation - May 2020", headings); }
public void SoftUniNavigationPage() { var _loginToSoftUni = new SoftUniPage(_driver); _loginToSoftUni.Navigate(); _loginToSoftUni.Maximaze(); _loginToSoftUni.LinkText.Click(); _loginToSoftUni.Username.SendKeys("TonyCvetanov"); _loginToSoftUni.Passowrd.SendKeys("PRb7AftzjJ4aaDt"); _loginToSoftUni.ClickForLoginButton.Click(); _loginToSoftUni.NavigateToQa.Click(); _loginToSoftUni.AssertLink("QA Automation - септември 2019"); }
public void SetUp() { ChromeOptions options = new ChromeOptions(); options.PlatformName = "windows"; options.BrowserVersion = "77.0"; var driver = new RemoteWebDriver(new Uri("http://192.168.100.5:21928/wd/hub"), options.ToCapabilities(), TimeSpan.FromSeconds(10)); driver.Manage().Timeouts().PageLoad = TimeSpan.FromSeconds(30); driver.Manage().Window.Maximize(); softUniPage = new SoftUniPage(driver); }
public void TestInit() { ChromeOptions options = new ChromeOptions(); options.PlatformName = "windows"; options.BrowserVersion = "77.0"; _driver = new RemoteWebDriver(new Uri("http://192.168.254.1:18415/wd/hub"), options.ToCapabilities(), TimeSpan.FromSeconds(10)); _driver.Manage().Timeouts().PageLoad = TimeSpan.FromSeconds(30); //_driver = new ChromeDriver(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)); _driver.Manage().Window.Maximize(); _loginpage = new LoginPage(_driver); _softunipage = new SoftUniPage(_driver); }
public void CalssInit() { ChromeOptions options = new ChromeOptions(); options.PlatformName = "windows"; options.BrowserVersion = "77"; _driver = new RemoteWebDriver(new Uri("http://192.168.1.11:47909/wd/hub"), options.ToCapabilities(), TimeSpan.FromSeconds(10)); _driver.Manage().Timeouts().PageLoad = TimeSpan.FromSeconds(30); _driver.Manage().Window.Maximize(); _loginPage = new LoginPage(_driver); _registrationPage = new RegistrationPage(_driver); _user = UserFactory.CreateNewUser(); _softuniPage = new SoftUniPage(_driver); _google_searchPage = new GoogleSearchPage(_driver); }
public void ClassInitialize() { //RegistrationPages _driver = new ChromeDriver(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)); _wait = new WebDriverWait(_driver, TimeSpan.FromSeconds(30)); _driver.Manage().Window.Maximize(); _driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(30); _loginPage = new LoginPage(_driver); _registrationPageFull = new RegistrationPageFull(_driver); _user = UserFactory.CreateRegistrationUser(); //Google search _googleSearchPage = new GoogleSearchPage(_driver); _googleSearchResults = new GoogleSearchResults(_driver); _googleFindPage = new GoogleFindPage(_driver); //SoftUniCoursePage check _softUniCoursePage = new SoftUniCoursePage(_driver); _softUniPage = new SoftUniPage(_driver); }
public void ClassInitialize() { //ChromeOptions options = new ChromeOptions(); //options.PlatformName = "windows"; //options.BrowserVersion = "77.0"; //_driver = new RemoteWebDriver(new Uri("http://192.168.100.8:27617/wd/hub"), options.ToCapabilities(), TimeSpan.FromSeconds(10)); //_driver.Manage().Timeouts().PageLoad = TimeSpan.FromSeconds(30); //_driver.Manage().Window.Maximize(); //_wait = new WebDriverWait(_driver, TimeSpan.FromSeconds(30)); //_driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(30); //_driver = new ChromeDriver(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)); //_wait = new WebDriverWait(_driver, TimeSpan.FromSeconds(30)); //_driver.Manage().Window.Maximize(); //_driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(30); //SoftUniCoursePage check _softUniCoursePage = new SoftUniCoursePage(Driver); _softUniPage = new SoftUniPage(Driver); }
public void TestInit() { _softuniPage = new SoftUniPage(Driver); _qaTrainingPage = new QATrainingPage(Driver); }
public void Elements(SoftUniPage user) { allCourses.Click(); course.Click(); }
public void SetUp() { Initialize(); _softUniPage = new SoftUniPage(Driver); _softUniPage.NavigateTo(); }