File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
java/client/test/org/openqa/selenium/firefox Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 4040import org .openqa .selenium .remote .DesiredCapabilities ;
4141import org .openqa .selenium .testing .JreSystemProperty ;
4242
43+ import java .io .File ;
4344import java .io .IOException ;
4445import java .io .OutputStream ;
4546import java .nio .file .Files ;
@@ -69,8 +70,10 @@ public void canSetBinaryThroughOptions() throws IOException {
6970 }
7071
7172 @ Test
72- public void shouldKeepAFirefoxBinaryAsABinaryIfSetAsOne () {
73- FirefoxBinary binary = new FirefoxBinary ();
73+ public void shouldKeepAFirefoxBinaryAsABinaryIfSetAsOne () throws IOException {
74+ File fakeExecutable = Files .createTempFile ("firefox" , ".exe" ).toFile ();
75+ fakeExecutable .deleteOnExit ();
76+ FirefoxBinary binary = new FirefoxBinary (fakeExecutable );
7477 FirefoxOptions options = new FirefoxOptions ().setBinary (binary );
7578
7679 Capabilities caps = options .addTo (new DesiredCapabilities ());
You can’t perform that action at this time.
0 commit comments