Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 77d4513

Browse files
tidy build files and update references in docs
1 parent c67d9e3 commit 77d4513

File tree

7 files changed

+23
-48
lines changed

7 files changed

+23
-48
lines changed

‎examples/java/build.gradle‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ repositories {
1111

1212
dependencies {
1313
testImplementation 'org.seleniumhq.selenium:selenium-java:4.13.0'
14-
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
14+
testImplementation 'org.seleniumhq.selenium:selenium-http-jdk-client:4.13.0'
15+
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.10.0'
1516
}
1617

1718
test {

‎examples/java/pom.xml‎

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,9 @@
99
<version>1.0.0</version>
1010

1111
<properties>
12-
<maven-surefire-plugin.version>3.0.0-M7</maven-surefire-plugin.version>
13-
<java.version>8</java.version>
14-
<maven.compiler.target>${java.version}</maven.compiler.target>
15-
<maven.compiler.source>${java.version}</maven.compiler.source>
16-
<project.encoding>UTF-8</project.encoding>
17-
<project.build.sourceEncoding>${project.encoding}</project.build.sourceEncoding>
18-
<project.reporting.outputEncoding>${project.encoding}</project.reporting.outputEncoding>
12+
<maven.compiler.target>1.8</maven.compiler.target>
13+
<maven.compiler.source>1.8</maven.compiler.source>
14+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1915
</properties>
2016

2117
<repositories>
@@ -35,19 +31,14 @@
3531
<version>4.13.0</version>
3632
</dependency>
3733
<dependency>
38-
<groupId>org.slf4j</groupId>
39-
<artifactId>slf4j-api</artifactId>
40-
<version>2.0.5</version>
41-
</dependency>
42-
<dependency>
43-
<groupId>ch.qos.logback</groupId>
44-
<artifactId>logback-classic</artifactId>
45-
<version>1.4.6</version>
34+
<groupId>org.seleniumhq.selenium</groupId>
35+
<artifactId>selenium-http-jdk-client</artifactId>
36+
<version>4.13.0</version>
4637
</dependency>
4738
<dependency>
4839
<groupId>org.junit.jupiter</groupId>
4940
<artifactId>junit-jupiter-engine</artifactId>
50-
<version>5.9.2</version>
41+
<version>5.10.0</version>
5142
<scope>test</scope>
5243
</dependency>
5344
</dependencies>
@@ -57,12 +48,11 @@
5748
<plugin>
5849
<groupId>org.apache.maven.plugins</groupId>
5950
<artifactId>maven-surefire-plugin</artifactId>
60-
<version>${maven-surefire-plugin.version}</version>
51+
<version>3.1.2</version>
6152
<configuration>
62-
<includes>
63-
<include>**/*Test.java</include>
64-
<include>**/*Example.java</include>
65-
</includes>
53+
<systemPropertyVariables>
54+
<webdriver.http.factory>jdk-http-client</webdriver.http.factory>
55+
</systemPropertyVariables>
6656
</configuration>
6757
</plugin>
6858
</plugins>

‎examples/java/src/main/resources/logback.xml‎

Lines changed: 0 additions & 16 deletions
This file was deleted.

‎website_and_docs/content/documentation/webdriver/getting_started/install_library.en.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ View the minimum supported Java version [here](https://github.com/SeleniumHQ/sel
2525
Installation of Selenium libraries for Java is accomplished using a build tool.
2626

2727
### Maven
28-
Specify the dependency in the project's `pom.xml` file:
28+
Specify the dependencies in the project's `pom.xml` file:
2929

30-
{{< gh-codeblock path="examples/java/pom.xml#L32-L36" >}}
30+
{{< gh-codeblock path="examples/java/pom.xml#L28-L38" >}}
3131

3232
### Gradle
3333
Specify the dependency in the project `build.gradle` file as `testImplementation`:
3434

35-
{{< gh-codeblock path="examples/java/build.gradle#L13" >}}
35+
{{< gh-codeblock path="examples/java/build.gradle#L13-L14" >}}
3636

3737
{{% /tab %}}
3838
{{% tab header="Python" %}}

‎website_and_docs/content/documentation/webdriver/getting_started/install_library.ja.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ View the minimum supported Java version [here](https://github.com/SeleniumHQ/sel
2323
Installation of Selenium libraries for Java is accomplished using a build tool.
2424

2525
### Maven
26-
Specify the dependency in the project's `pom.xml` file:
26+
Specify the dependencies in the project's `pom.xml` file:
2727

28-
{{< gh-codeblock path="examples/java/pom.xml#L32-L36" >}}
28+
{{< gh-codeblock path="examples/java/pom.xml#L28-L38" >}}
2929

3030
### Gradle
3131
Specify the dependency in the project `build.gradle` file as `testImplementation`:
3232

33-
{{< gh-codeblock path="examples/java/build.gradle#L13" >}}
33+
{{< gh-codeblock path="examples/java/build.gradle#L13-L14" >}}
3434

3535
{{% /tab %}}
3636
{{% tab header="Python" %}}

‎website_and_docs/content/documentation/webdriver/getting_started/install_library.pt-br.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ A instalação da biblioteca Selenium para Java é feita a partir de uma build t
2727
### Maven
2828
Especifique a dependência no `pom.xml` do seu projeto.
2929

30-
{{< gh-codeblock path="examples/java/pom.xml#L32-L36" >}}
30+
{{< gh-codeblock path="examples/java/pom.xml#L28-L38" >}}
3131

3232
### Gradle
3333
Especifique a dependência no `build.gradle` do seu projeto como `testImplementation`:
3434

35-
{{< gh-codeblock path="examples/java/build.gradle#L13" >}}
35+
{{< gh-codeblock path="examples/java/build.gradle#L13-L14" >}}
3636

3737
{{% /tab %}}
3838
{{% tab header="Python" %}}

‎website_and_docs/content/documentation/webdriver/getting_started/install_library.zh-cn.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ aliases: [
2525
### Maven
2626
具体的依赖位于项目中的 `pom.xml` 文件:
2727

28-
{{< gh-codeblock path="examples/java/pom.xml#L32-L36" >}}
28+
{{< gh-codeblock path="examples/java/pom.xml#L28-L38" >}}
2929

3030
### Gradle
3131
具体的依赖位于项目中的 `build.gradle` 文件中的 `testImplementation`:
3232

33-
{{< gh-codeblock path="examples/java/build.gradle#L13" >}}
33+
{{< gh-codeblock path="examples/java/build.gradle#L13-L14" >}}
3434

3535
{{% /tab %}}
3636
{{% tab header="Python" %}}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /