zive pom
This commit is contained in:
		@@ -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;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    
 | 
			
		||||
    
 | 
			
		||||
        
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -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();
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@@ -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; }
 | 
			
		||||
       
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										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 NUnit.Framework;
 | 
			
		||||
using System.Threading;
 | 
			
		||||
using OpenQA.Selenium.Firefox;
 | 
			
		||||
 | 
			
		||||
namespace zive;
 | 
			
		||||
 | 
			
		||||
public class Test
 | 
			
		||||
{
 | 
			
		||||
    IWebDriver driver = new ChromeDriver();
 | 
			
		||||
    IWebDriver driver = new FirefoxDriver();
 | 
			
		||||
 | 
			
		||||
    [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,
 | 
			
		||||
  "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": {
 | 
			
		||||
    "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",
 | 
			
		||||
      "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",
 | 
			
		||||
        "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\\",
 | 
			
		||||
        "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",
 | 
			
		||||
        "configFilePaths": [
 | 
			
		||||
          "C:\\Users\\lukas\\AppData\\Roaming\\NuGet\\NuGet.Config",
 | 
			
		||||
 
 | 
			
		||||
@@ -1,8 +1,8 @@
 | 
			
		||||
{
 | 
			
		||||
  "version": 2,
 | 
			
		||||
  "dgSpecHash": "Mhiytn3E4+Z+qSd0pZxzVJsw7NiqJt6gsbujYmipuD3hpBTcZrzy2q6HxmmACx39kgVS5HDW24KLxkyyttIM3Q==",
 | 
			
		||||
  "dgSpecHash": "Mpt3rrrr3aIv172iP52qKEveddp9Y7qv5ocYa2pGtcSCmU7FH4PiBhg2cSWUYsqqLGP7pWJwwnImsfx/cenLeQ==",
 | 
			
		||||
  "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": [
 | 
			
		||||
    "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",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user