Pom
This commit is contained in:
35
LukanNUnitProject/LukanPOM/Source/Pages/HomePage.cs
Normal file
35
LukanNUnitProject/LukanPOM/Source/Pages/HomePage.cs
Normal file
@ -0,0 +1,35 @@
|
||||
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 HomePage
|
||||
{
|
||||
private IWebDriver _driver;
|
||||
/*
|
||||
[FindsBy(How = How.XPath, Using = "//div[2]/span")]
|
||||
*/
|
||||
private IWebElement _clickcookieaccept;
|
||||
|
||||
public HomePage(IWebDriver driver)
|
||||
{
|
||||
_driver = driver;
|
||||
}
|
||||
|
||||
public void AcceptCookie()
|
||||
{
|
||||
_clickcookieaccept.FindElement(By.XPath("//div[2]/span")).Click();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user