You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of version 2.2.0, Selenium-Jupiter can used interactively from the Command Line Interface (CLI), i.e. the shell, to get VNC sessions of Docker browsers (Chrome, Firefox, Opera, Android). There are two ways of using this feature:
99
+
100
+
* Directly from the source code, using Maven. The command to be used is ``mvn exec:java -Dexec.args="browserName"``. For instance:
* Using Selenium-Jupiter as a *fat-jar* (i.e. Selenium-Jupiter with all its dependencies in a single executable JAR file). This JAR file can downloaded from [here](https://github.com/bonigarcia/selenium-jupiter/releases/download/selenium-jupiter-3.0.0/selenium-jupiter-3.0.0-fat.jar) and also it can be created using the command ``mvn compile assembly:single`` from the source code. Once you get the *fat-jar*, you simply need to use the command ``java -jar selenium-jupiter-3.0.0-fat.jar browserName``, for instance:
139
+
140
+
```
141
+
> java -jar selenium-jupiter-3.0.0-fat.jar chrome
142
+
[INFO] Using SeleniumJupiter to execute chrome (latest) in Docker
143
+
[DEBUG] Preference found CHROME=71.0 (valid until 2019-01-07 19:53:47)
144
+
[INFO] Using CHROME version 71.0 (latest)
145
+
[DEBUG] Preference found selenoid/vnc:chrome_71.0=pulled (valid until 2019-01-07 19:53:51)
146
+
[DEBUG] Preference found aerokube/selenoid:1.8.4=pulled (valid until 2019-01-07 19:53:53)
As of version 3.0.0, Selenium-Jupiter can used as a server. To start this mode, the shell is used. Once again, two options are allowed:
165
+
166
+
* Directly from the source code and Maven. The command to be used is ``mvn exec:java -Dexec.args="server <port>"``. If the second argument is not specified, the default port will be used (4042):
[INFO] Selenium-Jupiter server listening on http://localhost:4042/wd/hub
178
+
```
179
+
180
+
* Using Selenium-Jupiter as a [fat-jar](https://github.com/bonigarcia/selenium-jupiter/releases/download/selenium-jupiter-3.0.0/selenium-jupiter-3.2.0-fat.jar). For instance:
181
+
182
+
```
183
+
> java -jar webdrivermanager-3.0.0-fat.jar server
184
+
[INFO] Selenium-Jupiter server listening on http://localhost:4042/wd/hub
185
+
```
186
+
187
+
When the Selenium-Jupiter server is up and running, it acts as a regular Selenium Server for Docker browsers (Chrome, Firefox,. Opera, Android), and its URL can be used in tests using regular Selenium's ``RemoteWebDriver`` objects.
188
+
189
+
95
190
## Documentation
96
191
97
192
You can find more details and examples on the [Selenium-Jupiter user guide].
0 commit comments