.Net_Test/LukanNUnitProject/LukanPOM/Source/Pages/HomeTwo.cs

42 lines
890 B
C#
Raw Permalink Normal View History

2023-08-25 05:41:57 +00:00
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;
namespace LukanPOM.PageObjects
{
public class HomeTwo
{
private IWebDriver driver;
IWebElement ClickDeclineCookie2 => driver.FindElement(By.XPath("//div[3]/span"));
public HomeTwo(IWebDriver driver)
{
this.driver = driver;
}
2023-08-25 08:19:53 +00:00
2023-08-25 05:41:57 +00:00
public void DeclineCookie2()
2023-08-25 08:19:53 +00:00
{
2023-08-25 05:41:57 +00:00
ClickDeclineCookie2.Click();
2023-08-25 08:19:53 +00:00
}
public void Hledani()
{
IWebElement searchBox = driver.FindElement(By.Name("s"));
searchBox.SendKeys("test");
searchBox.Submit();
2023-08-25 05:41:57 +00:00
}
2023-08-25 08:19:53 +00:00
2023-08-25 05:41:57 +00:00
}
}