https://github.com/zkoss/zk-webdriver
The ZK Webdriver utility library
https://github.com/zkoss/zk-webdriver
Last synced: 4 months ago
JSON representation
The ZK Webdriver utility library
- Host: GitHub
- URL: https://github.com/zkoss/zk-webdriver
- Owner: zkoss
- License: mit
- Created: 2022-08-26T03:20:03.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2025-05-20T06:16:57.000Z (about 1 year ago)
- Last Synced: 2025-05-20T07:26:18.881Z (about 1 year ago)
- Language: Java
- Size: 153 KB
- Stars: 0
- Watchers: 7
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: contributing.md
- License: LICENSE
Awesome Lists containing this project
README
The ZK Webdriver utility library.
-----
### Support Version
* JDK 11+
* Servlet 3 (with Jetty v10+)
### How to specify ContextPath in System Property
For example in Gradle,
```gradle
test {
systemProperty "zkWebdriverContextPath", "/zephyr-test"
}
```
### How to specify TestURLPackage in System Property
For example in Gradle,
```gradle
test {
systemProperty "zkWebdriverTestURLPackage", "org.zkoss.zephyr.webdriver"
}
```
### How to specify Webapp Base Resource in System Property
For example in Gradle,
```gradle
test {
systemProperty "zkWebdriverBaseResource", "./test/webapp/"
}
```
Note: the default value is `"./src/main/webapp/"`
### How to specify a fix Jetty Port in System Property
For example in Gradle,
```gradle
test {
systemProperty "jetty.port", "8888"
}
```
### How to use Docker compose v1 in System Property
For example in Gradle,
```gradle
test {
systemProperty "useDockerComposeV2", "false"
}
```
### How to specify Remote Web Driver Url in System Property
For example in Gradle,
```gradle
test {
systemProperty "RemoteWebDriverUrl", "http://sechrome.test:4444/wd/hub"
}
```
### How to specify Host in System Property
For example in Gradle,
```gradle
test {
systemProperty "Host", "127.0.0.1"
}
```
### How to specify MobileEmulationDeviceName in System Property
For example in Gradle,
```gradle
test {
systemProperty "MobileEmulationDeviceName", "iPad"
}
```
**Note:** The device name is `Nexus 7` by default, because `iPad` doesn't work since ChromeDriver 115+
**Note:** By default, it's Docker compose v2 since 1.0.10.2.
### How to release
1. Update the project `version` in `gradle.properties`
2. Run `./gradlew clean build bundleJar`
3. Upload zk-webdriver-VERSION-bundle.jar from `build/libs`