This commit is contained in:
Lukáš Kaňka
2023-08-25 10:19:53 +02:00
parent 58abc6ebfe
commit 8f4f4a9961
24 changed files with 69 additions and 15 deletions

View File

@ -24,6 +24,8 @@ namespace LukanPOM.PageObjects
IWebElement ClickDeclineCookie => driver.FindElement(By.XPath("//div[3]/span"));
IWebElement ClickZasady => driver.FindElement(By.Id("menu-item-439"));
@ -67,6 +69,8 @@ namespace LukanPOM.PageObjects
Console.WriteLine("Test prošel");
return this;
}
}

View File

@ -25,10 +25,18 @@ namespace LukanPOM.PageObjects
{
this.driver = driver;
}
public void DeclineCookie2()
{
{
ClickDeclineCookie2.Click();
}
public void Hledani()
{
IWebElement searchBox = driver.FindElement(By.Name("s"));
searchBox.SendKeys("test");
searchBox.Submit();
}
}
}

View File

@ -9,7 +9,7 @@ namespace LukanPOM.Common
{
internal class TestBase
{
protected HomePage Home { get; private set; }
public HomePage Home { get; private set; }
protected HomeTwo HomeTwo { get; private set; }
protected IWebDriver Driver { get; private set; }

View File

@ -0,0 +1,41 @@
using System;
using OpenQA.Selenium;
using OpenQA.Selenium.Remote;
using NUnit.Framework;
using System.Threading;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OpenQA.Selenium.Support.UI;
using SeleniumExtras.PageObjects;
using System.Net;
using WebDriverManager;
using WebDriverManager.DriverConfigs.Impl;
using OpenQA.Selenium.Chrome;
using LukanPOM.PageObjects;
using LukanPOM.Common;
namespace LukanPOM.Tests
{
//private IWebDriver? _driver;
internal class Search : TestBase
{
[Test]
public void SearchTest()
{
HomeTwo.Hledani();
}
}
}

View File

@ -1 +1 @@
2100255613
1152753646

View File

@ -1 +1 @@
a5f8f4183a1f4675f763c0c67fa33b48cbd6711d
3d89fa789d530c360b52818d9fd035aeced6d429

View File

@ -1 +1 @@
4545ca77f2720299ce8f736cc3ec05ba9ee1bf97
3d65e62fd005875c644d97a784cb761f30c8b124