Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mgrybyk/selenium-grid-capability-matcher
https://github.com/mgrybyk/selenium-grid-capability-matcher
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mgrybyk/selenium-grid-capability-matcher
- Owner: mgrybyk
- License: mit
- Created: 2019-06-16T20:23:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-28T16:32:38.000Z (over 3 years ago)
- Last Synced: 2023-03-02T04:56:50.715Z (almost 2 years ago)
- Language: Java
- Size: 6.84 KB
- Stars: 8
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Custom Capability Matcher
> Adds support of `deviceName` or `appium:deviceName` while still supports default `browserName`.
Still works like default capability matcher, but also adds suport of `deviceName`.
Don't pass device name into `browser` property, it is required to pass either `browser` or `deviceName`.
## Usage
Specify custom capability matcher in hub config json (see example).
```json
{
"capabilityMatcher": "com.wdio.qa.grid.matcher.CapabilityMatcher",
"registry": "org.openqa.grid.internal.DefaultGridRegistry"
}
```Run grid server
```sh
seleniumServerJar=selenium-server-standalone-3.141.59.jar
capabilityMatcherJar=grid-capability-matcher-3.141.59.jar
javaClasses="$seleniumServerJar:$capabilityMatcherJar"java -cp $javaClasses org.openqa.grid.selenium.GridLauncherV3 -role hub -hubConfig hubconfig.json
```## Example
1. Build `mvn -q install -DskipTests`
2. Download grid server `./download-server.sh` (in *example* folder)
3. Run grid server `./gridStart.sh` (in *example* folder)---
[Original Turtorial](https://rationaleemotions.wordpress.com/2014/01/19/working-with-a-custom-capability-matcher-in-the-grid/)