commit
6859cb6493
@ -0,0 +1,3 @@
|
||||
/.idea/
|
||||
/target/
|
||||
*.iml
|
@ -0,0 +1 @@
|
||||
java temurin-17
|
@ -0,0 +1,5 @@
|
||||
Copyright (C) 2023 by IO42630 <ivan@olexyn.com>
|
||||
|
||||
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.
|
@ -0,0 +1,4 @@
|
||||
# TabDriver
|
||||
|
||||
* Wrapper for `selenium` to make it easier to use.
|
||||
* Must use `Chrome` (not `Chromium`).
|
@ -0,0 +1,105 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>com.olexyn</groupId>
|
||||
<artifactId>tabdriver</artifactId>
|
||||
<version>1.1</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>tabriver</name>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<xx.java.version>17</xx.java.version>
|
||||
</properties>
|
||||
|
||||
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.olexyn</groupId>
|
||||
<artifactId>zeebom</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.olexyn.min.log</groupId>
|
||||
<artifactId>min-log</artifactId>
|
||||
<version>0.1.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<!-- must come before selenium -->
|
||||
<groupId>org.seleniumhq.selenium</groupId>
|
||||
<artifactId>selenium-api</artifactId>
|
||||
<version>3.141.59</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.seleniumhq.webdriver</groupId>
|
||||
<artifactId>webdriver-selenium</artifactId>
|
||||
<version>0.9.7376</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.seleniumhq.selenium</groupId>
|
||||
<artifactId>selenium-chrome-driver</artifactId>
|
||||
<version>3.141.59</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.seleniumhq.webdriver</groupId>
|
||||
<artifactId>webdriver-common</artifactId>
|
||||
<version>0.9.7376</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.seleniumhq.webdriver</groupId>
|
||||
<artifactId>webdriver-support</artifactId>
|
||||
<version>0.9.7376</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.seleniumhq.selenium</groupId>
|
||||
<artifactId>selenium-java</artifactId>
|
||||
<version>3.141.59</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.olexyn</groupId>
|
||||
<artifactId>propconf</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-clean-plugin</artifactId>
|
||||
<version>3.1.0</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>3.0.2</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.11.0</version>
|
||||
<configuration>
|
||||
<source>${xx.java.version}</source>
|
||||
<target>${xx.java.version}</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
</build>
|
||||
|
||||
|
||||
</project>
|
@ -0,0 +1,7 @@
|
||||
package com.olexyn.tabdriver;
|
||||
|
||||
public interface Constants {
|
||||
|
||||
String WORKING_DIR = "user.dir";
|
||||
String EMPTY = "";
|
||||
}
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
chrome.driver.path=
|
||||
headless=false
|
||||
download.dir=
|
Loading…
Reference in new issue