Skip to content

Commit 4e9ebd5

Browse files
committed
Merge remote-tracking branch 'upstream/trunk' into trunk
2 parents 83af0b3 + 35be07d commit 4e9ebd5

File tree

31 files changed

+453
-1141
lines changed

31 files changed

+453
-1141
lines changed

.github/workflows/dotnet-examples.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,6 @@ jobs:
3737
uses: actions/setup-dotnet@v3
3838
with:
3939
dotnet-version: 5.0.x
40-
- name: Install Chrome
41-
uses: browser-actions/setup-chrome@latest
42-
- name: Install Edge
43-
uses: browser-actions/setup-edge@latest
44-
- name: Install Firefox
45-
uses: abhi1693/[email protected]
46-
with:
47-
browser: firefox
48-
version: latest
4940
- name: Run tests
5041
uses: nick-invision/[email protected]
5142
with:

.github/workflows/java-examples.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,6 @@ jobs:
3838
with:
3939
distribution: 'temurin'
4040
java-version: 8
41-
- name: Install Chrome
42-
uses: browser-actions/setup-chrome@latest
43-
- name: Install Edge
44-
uses: browser-actions/setup-edge@latest
45-
- name: Install Firefox
46-
uses: abhi1693/[email protected]
47-
with:
48-
browser: firefox
49-
version: latest
5041
- name: Run Tests
5142
uses: nick-invision/[email protected]
5243
with:

.github/workflows/js-examples.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,6 @@ jobs:
3333
- name: Start Xvfb
3434
if: matrix.os == 'ubuntu-latest'
3535
run: Xvfb :99 &
36-
- name: Install Chrome
37-
uses: browser-actions/setup-chrome@latest
38-
- name: Install Edge
39-
uses: browser-actions/setup-edge@latest
40-
- name: Install Firefox
41-
uses: abhi1693/[email protected]
42-
with:
43-
browser: firefox
44-
version: latest
4536
- name: Install Requirements
4637
working-directory: ./examples/javascript
4738
run: npm install

.github/workflows/kotlin-examples.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,6 @@ jobs:
3838
with:
3939
distribution: 'temurin'
4040
java-version: 8
41-
- name: Install Chrome
42-
uses: browser-actions/setup-chrome@latest
43-
- name: Install Edge
44-
uses: browser-actions/setup-edge@latest
45-
- name: Install Firefox
46-
uses: abhi1693/[email protected]
47-
with:
48-
browser: firefox
49-
version: latest
5041
- name: Run tests
5142
uses: nick-invision/[email protected]
5243
with:

.github/workflows/python-examples.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,6 @@ jobs:
3333
- name: Start Xvfb
3434
if: matrix.os == 'ubuntu-latest'
3535
run: Xvfb :99 &
36-
- name: Install Chrome
37-
uses: browser-actions/setup-chrome@latest
38-
- name: Install Edge
39-
uses: browser-actions/setup-edge@latest
40-
- name: Install Firefox
41-
uses: abhi1693/[email protected]
42-
with:
43-
browser: firefox
44-
version: latest
4536
- name: Set up Python
4637
uses: actions/setup-python@v4
4738
with:

.github/workflows/ruby-examples.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,6 @@ jobs:
3838
with:
3939
ruby-version: 2.7
4040
bundler-cache: true
41-
- name: Install Chrome
42-
uses: browser-actions/setup-chrome@latest
43-
- name: Install Edge
44-
uses: browser-actions/setup-edge@latest
45-
- name: Install Firefox
46-
uses: abhi1693/[email protected]
47-
with:
48-
browser: firefox
49-
version: latest
5041
- name: Install Gems
5142
working-directory: ./examples/ruby
5243
run: bundle install

examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,11 @@ public void headlessOptions() {
2626
driver = new ChromeDriver(options);
2727
}
2828

29+
@Test
30+
public void keepBrowserOpen() {
31+
ChromeOptions options = new ChromeOptions();
32+
options.setExperimentalOption("detach", true);
33+
driver = new ChromeDriver(options);
34+
}
35+
2936
}

0 commit comments

Comments
 (0)