zive pom
This commit is contained in:
parent
58abc6ebfe
commit
8f4f4a9961
@ -27,6 +27,8 @@ namespace LukanPOM.PageObjects
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public HomePage(IWebDriver driver)
|
public HomePage(IWebDriver driver)
|
||||||
{
|
{
|
||||||
this.driver = driver;
|
this.driver = driver;
|
||||||
@ -69,6 +71,8 @@ namespace LukanPOM.PageObjects
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -26,9 +26,17 @@ namespace LukanPOM.PageObjects
|
|||||||
this.driver = driver;
|
this.driver = driver;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void DeclineCookie2()
|
public void DeclineCookie2()
|
||||||
{
|
{
|
||||||
ClickDeclineCookie2.Click();
|
ClickDeclineCookie2.Click();
|
||||||
|
}
|
||||||
|
public void Hledani()
|
||||||
|
{
|
||||||
|
IWebElement searchBox = driver.FindElement(By.Name("s"));
|
||||||
|
searchBox.SendKeys("test");
|
||||||
|
searchBox.Submit();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -9,7 +9,7 @@ namespace LukanPOM.Common
|
|||||||
{
|
{
|
||||||
internal class TestBase
|
internal class TestBase
|
||||||
{
|
{
|
||||||
protected HomePage Home { get; private set; }
|
public HomePage Home { get; private set; }
|
||||||
protected HomeTwo HomeTwo { get; private set; }
|
protected HomeTwo HomeTwo { get; private set; }
|
||||||
protected IWebDriver Driver { get; private set; }
|
protected IWebDriver Driver { get; private set; }
|
||||||
|
|
||||||
|
41
LukanNUnitProject/LukanPOM/Tests/Search.cs
Normal file
41
LukanNUnitProject/LukanPOM/Tests/Search.cs
Normal 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();
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
|||||||
2100255613
|
1152753646
|
@ -1 +1 @@
|
|||||||
a5f8f4183a1f4675f763c0c67fa33b48cbd6711d
|
3d89fa789d530c360b52818d9fd035aeced6d429
|
||||||
|
@ -1 +1 @@
|
|||||||
4545ca77f2720299ce8f736cc3ec05ba9ee1bf97
|
3d65e62fd005875c644d97a784cb761f30c8b124
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -3,12 +3,13 @@ using OpenQA.Selenium.Chrome;
|
|||||||
using System;
|
using System;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
using OpenQA.Selenium.Firefox;
|
||||||
|
|
||||||
namespace zive;
|
namespace zive;
|
||||||
|
|
||||||
public class Test
|
public class Test
|
||||||
{
|
{
|
||||||
IWebDriver driver = new ChromeDriver();
|
IWebDriver driver = new FirefoxDriver();
|
||||||
|
|
||||||
[SetUp]
|
[SetUp]
|
||||||
public void Setup()
|
public void Setup()
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
|||||||
1330963578
|
2032797117
|
Binary file not shown.
@ -1 +1 @@
|
|||||||
c3bc808626d25481ce433edc68867da35a3e1faf
|
5e8a55eff8a7a352aed09574268f644c93ea2c11
|
||||||
|
Binary file not shown.
@ -1,17 +1,17 @@
|
|||||||
{
|
{
|
||||||
"format": 1,
|
"format": 1,
|
||||||
"restore": {
|
"restore": {
|
||||||
"C:\\Users\\lukas\\Nextcloud\\GitHub\\.Net_C.Sharp_Test\\ZiveNUnitProject\\ZiveNUnitProject\\ZiveNUnitProject.csproj": {}
|
"c:\\Users\\lukas\\Nextcloud\\GitHub\\.Net_C.Sharp_Test\\ZiveNUnitProject\\ZiveNUnitProject\\ZiveNUnitProject.csproj": {}
|
||||||
},
|
},
|
||||||
"projects": {
|
"projects": {
|
||||||
"C:\\Users\\lukas\\Nextcloud\\GitHub\\.Net_C.Sharp_Test\\ZiveNUnitProject\\ZiveNUnitProject\\ZiveNUnitProject.csproj": {
|
"c:\\Users\\lukas\\Nextcloud\\GitHub\\.Net_C.Sharp_Test\\ZiveNUnitProject\\ZiveNUnitProject\\ZiveNUnitProject.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\lukas\\Nextcloud\\GitHub\\.Net_C.Sharp_Test\\ZiveNUnitProject\\ZiveNUnitProject\\ZiveNUnitProject.csproj",
|
"projectUniqueName": "c:\\Users\\lukas\\Nextcloud\\GitHub\\.Net_C.Sharp_Test\\ZiveNUnitProject\\ZiveNUnitProject\\ZiveNUnitProject.csproj",
|
||||||
"projectName": "ZiveNUnitProject",
|
"projectName": "ZiveNUnitProject",
|
||||||
"projectPath": "C:\\Users\\lukas\\Nextcloud\\GitHub\\.Net_C.Sharp_Test\\ZiveNUnitProject\\ZiveNUnitProject\\ZiveNUnitProject.csproj",
|
"projectPath": "c:\\Users\\lukas\\Nextcloud\\GitHub\\.Net_C.Sharp_Test\\ZiveNUnitProject\\ZiveNUnitProject\\ZiveNUnitProject.csproj",
|
||||||
"packagesPath": "C:\\Users\\lukas\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\lukas\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\lukas\\Nextcloud\\GitHub\\.Net_C.Sharp_Test\\ZiveNUnitProject\\ZiveNUnitProject\\obj\\",
|
"outputPath": "c:\\Users\\lukas\\Nextcloud\\GitHub\\.Net_C.Sharp_Test\\ZiveNUnitProject\\ZiveNUnitProject\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"configFilePaths": [
|
"configFilePaths": [
|
||||||
"C:\\Users\\lukas\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
"C:\\Users\\lukas\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"dgSpecHash": "Mhiytn3E4+Z+qSd0pZxzVJsw7NiqJt6gsbujYmipuD3hpBTcZrzy2q6HxmmACx39kgVS5HDW24KLxkyyttIM3Q==",
|
"dgSpecHash": "Mpt3rrrr3aIv172iP52qKEveddp9Y7qv5ocYa2pGtcSCmU7FH4PiBhg2cSWUYsqqLGP7pWJwwnImsfx/cenLeQ==",
|
||||||
"success": true,
|
"success": true,
|
||||||
"projectFilePath": "C:\\Users\\lukas\\Nextcloud\\GitHub\\.Net_C.Sharp_Test\\ZiveNUnitProject\\ZiveNUnitProject\\ZiveNUnitProject.csproj",
|
"projectFilePath": "c:\\Users\\lukas\\Nextcloud\\GitHub\\.Net_C.Sharp_Test\\ZiveNUnitProject\\ZiveNUnitProject\\ZiveNUnitProject.csproj",
|
||||||
"expectedPackageFiles": [
|
"expectedPackageFiles": [
|
||||||
"C:\\Users\\lukas\\.nuget\\packages\\coverlet.collector\\3.2.0\\coverlet.collector.3.2.0.nupkg.sha512",
|
"C:\\Users\\lukas\\.nuget\\packages\\coverlet.collector\\3.2.0\\coverlet.collector.3.2.0.nupkg.sha512",
|
||||||
"C:\\Users\\lukas\\.nuget\\packages\\dotnetseleniumextras.pageobjects.core\\4.3.0\\dotnetseleniumextras.pageobjects.core.4.3.0.nupkg.sha512",
|
"C:\\Users\\lukas\\.nuget\\packages\\dotnetseleniumextras.pageobjects.core\\4.3.0\\dotnetseleniumextras.pageobjects.core.4.3.0.nupkg.sha512",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user