feat: use new min-root & min-bom

master
io42630 5 months ago
parent 9094be6766
commit 7958b641f5

@ -1,41 +0,0 @@
= TabDriver
:stylesheet: ../shared/adoc-styles.css
:toc:
:toclevels: 4
* Wrapper for `selenium` to make it easier to use.
* Must use `Chrome` (not `Chromium`).
* Must supply `.properties` file with.
chrome.driver.path=
headless=false
download.dir=
== Usage
=== Init
[source,java]
var confPath = Path.of("/foo/tabdriver.properties");
var td = TabDriverBuilder.build(confPath);
=== Web Navigation
* `TabDriver` is somewhat opionionated.
* The default way of fetching an element is by `css` selector.
** i.e. `td.findByCss("input[name='q']")`
** this returns an `Optional<WebElement>` which the consumer can
** the optional is empty on any error.
decide how to consume.
=== Quick Recap of CSS Selectors
|===
| Selector | Description
| `[class*='x']` , `[aria-label*='x']` | `attribute` containing `x`
| button[class*='email'] | button with a class containing the word `email`
| form[action*='sign'] | form with an action attribute containing the word `sign`
| button.tv-button#email-signin | button with class `tv-button` and id `email-signin`

@ -0,0 +1,39 @@
# TabDriver
* Wrapper for `selenium` to make it easier to use.
* Must use `Chrome` (not `Chromium`).
* Must supply `.properties` file with.
```properties
chrome.driver.path=
headless=false
download.dir=
```
## Usage
### Init
```java
var confPath = Path.of("/foo/tabdriver.properties");
var td = TabDriverBuilder.build(confPath);
```
### Web Navigation
* `TabDriver` is somewhat opionionated.
* The default way of fetching an element is by `css` selector.
* i.e. `td.findByCss("input[name='q']")`
* this returns an `Optional<WebElement>` which the consumer can decide how to consume.
* the optional is empty on any error.
### Quick Recap of CSS Selectors
| Selector | Description |
|--------------------------------------|----------------------------------------------------------|
| `[class*='x']` , `[aria-label*='x']` | `attribute` containing `x` |
| button[class*='email'] | button with a class containing the word `email` |
| form[action*='sign'] | form with an action attribute containing the word `sign` |
| button.tv-button#email-signin | button with class `tv-button` and id `email-signin` |

@ -5,35 +5,31 @@
<parent>
<groupId>com.olexyn</groupId>
<artifactId>min-root</artifactId>
<version>jdk17-0.0</version>
<version>17.0.1</version>
</parent>
<artifactId>tabdriver</artifactId>
<version>1.3.1</version>
<version>1.3.2</version>
<packaging>jar</packaging>
<name>tabdriver</name>
<properties>
<xx.selenium.version>4.21.0</xx.selenium.version>
<xx.webdriver.version>0.9.7376</xx.webdriver.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.olexyn</groupId>
<artifactId>min-bom</artifactId>
<version>jdk17-0.3</version>
<version>17.0.6</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>com.olexyn</groupId>
<artifactId>min-log</artifactId>
<version>0.6</version>
</dependency>
<dependency>
<!-- must come before selenium -->
@ -74,16 +70,13 @@
<dependency>
<groupId>com.olexyn</groupId>
<artifactId>min-prop</artifactId>
<version>2.2.2</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>RELEASE</version>
<version>5.11.3</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>

Loading…
Cancel
Save