Skip to content

Commit a505983

Browse files
committed
Include MV3 extension to change to dark mode (ch5 examples)
1 parent e645a0d commit a505983

File tree

12 files changed

+11
-11
lines changed

12 files changed

+11
-11
lines changed

selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/caps/extensions/AddExtensionChromeJUnit4Test.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class AddExtensionChromeJUnit4Test {
4242
@Before
4343
public void setup() throws URISyntaxException {
4444
Path extension = Paths
45-
.get(ClassLoader.getSystemResource("dark-bg.crx").toURI());
45+
.get(ClassLoader.getSystemResource("shade_dark_mode.crx").toURI());
4646
ChromeOptions options = new ChromeOptions();
4747
options.addExtensions(extension.toFile());
4848

selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/caps/extensions/AddExtensionEdgeJUnit4Test.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ public class AddExtensionEdgeJUnit4Test {
4141

4242
@Before
4343
public void setup() throws URISyntaxException {
44-
Path extension = Paths
45-
.get(ClassLoader.getSystemResource("dark-bg.crx").toURI());
44+
Path extension = Paths.get(
45+
ClassLoader.getSystemResource("shade_dark_mode.crx").toURI());
4646
EdgeOptions options = new EdgeOptions();
4747
options.addExtensions(extension.toFile());
4848

Binary file not shown.

selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/caps/extensions/AddExtensionChromeSelJupTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ class AddExtensionChromeSelJupTest {
4444

4545
@BeforeEach
4646
void setup() throws URISyntaxException {
47-
Path extension = Paths
48-
.get(ClassLoader.getSystemResource("dark-bg.crx").toURI());
47+
Path extension = Paths.get(
48+
ClassLoader.getSystemResource("shade_dark_mode.crx").toURI());
4949
options.addExtensions(extension.toFile());
5050
}
5151

selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/caps/extensions/AddExtensionEdgeSelJupTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ class AddExtensionEdgeSelJupTest {
4444

4545
@BeforeEach
4646
void setup() throws URISyntaxException {
47-
Path extension = Paths
48-
.get(ClassLoader.getSystemResource("dark-bg.crx").toURI());
47+
Path extension = Paths.get(
48+
ClassLoader.getSystemResource("shade_dark_mode.crx").toURI());
4949
options.addExtensions(extension.toFile());
5050
}
5151

Binary file not shown.

selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/caps/extensions/AddExtensionChromeJupiterTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class AddExtensionChromeJupiterTest {
4242
@BeforeEach
4343
void setup() throws URISyntaxException {
4444
Path extension = Paths
45-
.get(ClassLoader.getSystemResource("dark-bg.crx").toURI());
45+
.get(ClassLoader.getSystemResource("shade_dark_mode.crx").toURI());
4646
ChromeOptions options = new ChromeOptions();
4747
options.addExtensions(extension.toFile());
4848

selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/caps/extensions/AddExtensionEdgeJupiterTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class AddExtensionEdgeJupiterTest {
4242
@BeforeEach
4343
void setup() throws URISyntaxException {
4444
Path extension = Paths
45-
.get(ClassLoader.getSystemResource("dark-bg.crx").toURI());
45+
.get(ClassLoader.getSystemResource("shade_dark_mode.crx").toURI());
4646
EdgeOptions options = new EdgeOptions();
4747
options.addExtensions(extension.toFile());
4848

Binary file not shown.

selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/caps/extensions/AddExtensionChromeNGTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class AddExtensionChromeNGTest {
4242
@BeforeMethod
4343
public void setup() throws URISyntaxException {
4444
Path extension = Paths
45-
.get(ClassLoader.getSystemResource("dark-bg.crx").toURI());
45+
.get(ClassLoader.getSystemResource("shade_dark_mode.crx").toURI());
4646
ChromeOptions options = new ChromeOptions();
4747
options.addExtensions(extension.toFile());
4848

0 commit comments

Comments
 (0)