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.
										
									
								
							
		Reference in New Issue
	
	Block a user