diff --git a/playwrightLukan/.gitignore b/playwrightLukan/.gitignore
new file mode 100644
index 0000000..5ff6309
--- /dev/null
+++ b/playwrightLukan/.gitignore
@@ -0,0 +1,38 @@
+target/
+!.mvn/wrapper/maven-wrapper.jar
+!**/src/main/**/target/
+!**/src/test/**/target/
+
+### IntelliJ IDEA ###
+.idea/modules.xml
+.idea/jarRepositories.xml
+.idea/compiler.xml
+.idea/libraries/
+*.iws
+*.iml
+*.ipr
+
+### Eclipse ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+build/
+!**/src/main/**/build/
+!**/src/test/**/build/
+
+### VS Code ###
+.vscode/
+
+### Mac OS ###
+.DS_Store
\ No newline at end of file
diff --git a/playwrightLukan/.idea/.gitignore b/playwrightLukan/.idea/.gitignore
new file mode 100644
index 0000000..13566b8
--- /dev/null
+++ b/playwrightLukan/.idea/.gitignore
@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/playwrightLukan/.idea/encodings.xml b/playwrightLukan/.idea/encodings.xml
new file mode 100644
index 0000000..aa00ffa
--- /dev/null
+++ b/playwrightLukan/.idea/encodings.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/playwrightLukan/.idea/misc.xml b/playwrightLukan/.idea/misc.xml
new file mode 100644
index 0000000..dd5e3ad
--- /dev/null
+++ b/playwrightLukan/.idea/misc.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/playwrightLukan/.idea/vcs.xml b/playwrightLukan/.idea/vcs.xml
new file mode 100644
index 0000000..6c0b863
--- /dev/null
+++ b/playwrightLukan/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/playwrightLukan/pom.xml b/playwrightLukan/pom.xml
new file mode 100644
index 0000000..794bb10
--- /dev/null
+++ b/playwrightLukan/pom.xml
@@ -0,0 +1,51 @@
+
+ 4.0.0
+ cz.lukan
+ playwrightLukan
+ 1.0-SNAPSHOT
+ Archetype - playwrightLukan
+ http://maven.apache.org
+
+ UTF-8
+
+
+
+ org.seleniumhq.selenium
+ selenium-java
+ 4.11.0
+
+
+
+ junit
+ junit
+ 4.13.2
+ test
+
+
+ com.microsoft.playwright
+ playwright
+ 1.35.1
+
+
+ org.junit.jupiter
+ junit-jupiter
+ RELEASE
+ test
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.10.1
+
+
+
+ 20
+
+
+
+
+
diff --git a/playwrightLukan/src/java/test/cookies.java b/playwrightLukan/src/java/test/cookies.java
new file mode 100644
index 0000000..748e8ff
--- /dev/null
+++ b/playwrightLukan/src/java/test/cookies.java
@@ -0,0 +1,44 @@
+package test;
+
+import com.microsoft.playwright.*;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+
+public class cookies {
+ // Shared between all tests in this class.
+ static Playwright playwright;
+ static Browser browser;
+
+ // New instance for each test method.
+ BrowserContext context;
+ Page page;
+
+
+ @BeforeEach
+ public void setUp() {
+ Browser browser = Playwright.create().chromium().launch(new BrowserType.LaunchOptions()
+ .setHeadless(false));
+ BrowserContext context = browser.newContext();
+ page = context.newPage();
+ }
+
+ @AfterEach
+ public void tearDown() {
+ page.close();
+ page.context().close();
+ page.close();
+ }
+
+ @Test
+ void Accept() {
+ page.navigate("https://lukan.cz");
+ page.getByText( "Accept").click();
+ }
+ @Test
+ void Decline() {
+ page.navigate("https://lukan.cz");
+ page.getByText("Decline").click();
+ }
+
+}
diff --git a/playwrightLukan/src/java/test/klikacka.java b/playwrightLukan/src/java/test/klikacka.java
new file mode 100644
index 0000000..bc84e24
--- /dev/null
+++ b/playwrightLukan/src/java/test/klikacka.java
@@ -0,0 +1,33 @@
+package test;
+
+import com.microsoft.playwright.*;
+import com.microsoft.playwright.options.AriaRole;
+
+public class klikacka {
+ public static void main(String[] args) {
+ try (Playwright playwright = Playwright.create()) {
+ Browser browser = playwright.chromium().launch(new BrowserType.LaunchOptions()
+ .setHeadless(false));
+ BrowserContext context = browser.newContext();
+ Page page = context.newPage();
+ page.navigate("https://lukan.cz/");
+ page.getByRole(AriaRole.LINK, new Page.GetByRoleOptions().setName("O mně")).click();
+ page.getByText("Accept").click();
+ page.getByRole(AriaRole.LINK, new Page.GetByRoleOptions().setName("Zásady ochrany osobních údajů")).click();
+ page.getByRole(AriaRole.LINK, new Page.GetByRoleOptions().setName("Úvodní stránka")).click();
+ page.locator("//*[@id=\"post-1225\"]/header/div/h2/a").click();
+ page.getByRole(AriaRole.LINK, new Page.GetByRoleOptions().setName("Úvodní stránka")).click();
+ }
+ try (Playwright playwright = Playwright.create()) {
+ Browser browser = playwright.chromium().launch(new BrowserType.LaunchOptions()
+ .setHeadless(false));
+ BrowserContext context = browser.newContext();
+ Page page = context.newPage();
+ page.navigate("https://lukan.cz/");
+ page.getByText("Accept").click();
+
+ }
+ }
+
+
+}
diff --git a/playwrightLukan/src/main/resources/META-INF/maven/archetype.xml b/playwrightLukan/src/main/resources/META-INF/maven/archetype.xml
new file mode 100644
index 0000000..c7b8e32
--- /dev/null
+++ b/playwrightLukan/src/main/resources/META-INF/maven/archetype.xml
@@ -0,0 +1,9 @@
+
+ playwrightLukan
+
+
+
+
+
+
+
diff --git a/playwrightLukan/src/main/resources/archetype-resources/pom.xml b/playwrightLukan/src/main/resources/archetype-resources/pom.xml
new file mode 100644
index 0000000..9217157
--- /dev/null
+++ b/playwrightLukan/src/main/resources/archetype-resources/pom.xml
@@ -0,0 +1,15 @@
+
+ 4.0.0
+ $cz.lukan
+ $playwrightLukan
+ $1.0-SNAPSHOT
+
+
+ junit
+ junit
+ 3.8.1
+ test
+
+
+
diff --git a/playwrightLukan/src/main/resources/archetype-resources/src/main/java/App.java b/playwrightLukan/src/main/resources/archetype-resources/src/main/java/App.java
new file mode 100644
index 0000000..83671f7
--- /dev/null
+++ b/playwrightLukan/src/main/resources/archetype-resources/src/main/java/App.java
@@ -0,0 +1,13 @@
+package $cz.lukan;
+
+/**
+ * Hello world!
+ *
+ */
+public class App
+{
+ public static void main( String[] args )
+ {
+ System.out.println( "Hello World!" );
+ }
+}
diff --git a/playwrightLukan/src/main/resources/archetype-resources/src/test/java/AppTest.java b/playwrightLukan/src/main/resources/archetype-resources/src/test/java/AppTest.java
new file mode 100644
index 0000000..27c1375
--- /dev/null
+++ b/playwrightLukan/src/main/resources/archetype-resources/src/test/java/AppTest.java
@@ -0,0 +1,38 @@
+package $cz.lukan;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest
+ extends TestCase
+{
+ /**
+ * Create the test case
+ *
+ * @param testName name of the test case
+ */
+ public AppTest( String testName )
+ {
+ super( testName );
+ }
+
+ /**
+ * @return the suite of tests being tested
+ */
+ public static Test suite()
+ {
+ return new TestSuite( AppTest.class );
+ }
+
+ /**
+ * Rigourous Test :-)
+ */
+ public void testApp()
+ {
+ assertTrue( true );
+ }
+}