commit 6859cb649379fe75e6830448c641eed6c91d9d8c Author: io42630 Date: Sat Aug 26 11:48:27 2023 +0200 init diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..65479bc --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/.idea/ +/target/ +*.iml \ No newline at end of file diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 0000000..571f519 --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +java temurin-17 diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..61897b8 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,5 @@ +Copyright (C) 2023 by IO42630 + +Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..c242851 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +# TabDriver + +* Wrapper for `selenium` to make it easier to use. +* Must use `Chrome` (not `Chromium`). \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..0ad6641 --- /dev/null +++ b/pom.xml @@ -0,0 +1,105 @@ + + 4.0.0 + + com.olexyn + tabdriver + 1.1 + jar + + tabriver + + + UTF-8 + 17 + + + + + + + com.olexyn + zeebom + 1.0-SNAPSHOT + pom + import + + + + + + + com.olexyn.min.log + min-log + 0.1.1 + + + + org.seleniumhq.selenium + selenium-api + 3.141.59 + + + org.seleniumhq.webdriver + webdriver-selenium + 0.9.7376 + + + org.seleniumhq.selenium + selenium-chrome-driver + 3.141.59 + + + org.seleniumhq.webdriver + webdriver-common + 0.9.7376 + + + org.seleniumhq.webdriver + webdriver-support + 0.9.7376 + + + org.projectlombok + lombok + + + org.seleniumhq.selenium + selenium-java + 3.141.59 + + + + com.olexyn + propconf + 1.0-SNAPSHOT + compile + + + + + + + + maven-clean-plugin + 3.1.0 + + + maven-resources-plugin + 3.0.2 + + + org.apache.maven.plugins + maven-compiler-plugin + 3.11.0 + + ${xx.java.version} + ${xx.java.version} + + + + + + + + diff --git a/src/main/java/com/olexyn/tabdriver/Constants.java b/src/main/java/com/olexyn/tabdriver/Constants.java new file mode 100644 index 0000000..9b01dbd --- /dev/null +++ b/src/main/java/com/olexyn/tabdriver/Constants.java @@ -0,0 +1,7 @@ +package com.olexyn.tabdriver; + +public interface Constants { + + String WORKING_DIR = "user.dir"; + String EMPTY = ""; +} diff --git a/src/main/java/com/olexyn/tabdriver/Tab.java b/src/main/java/com/olexyn/tabdriver/Tab.java new file mode 100644 index 0000000..7fa3754 --- /dev/null +++ b/src/main/java/com/olexyn/tabdriver/Tab.java @@ -0,0 +1,31 @@ +package com.olexyn.tabdriver; + +import lombok.Getter; +import lombok.Setter; + +public class Tab { + + + @Getter + @Setter + String handle; + + @Getter + @Setter + String name; + + @Getter + @Setter + String url; + + @Getter + @Setter + String purpose; + + + public Tab(String handle) { + this.handle = handle; + } + + +} diff --git a/src/main/resources/tabriver.properties b/src/main/resources/tabriver.properties new file mode 100644 index 0000000..840dc7d --- /dev/null +++ b/src/main/resources/tabriver.properties @@ -0,0 +1,3 @@ +chrome.driver.path= +headless=false +download.dir= \ No newline at end of file