-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[java] Secession of legacy firefox driver to a separate maven artifact
- Loading branch information
Showing
9 changed files
with
185 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
java/client/src/org/openqa/selenium/firefox/FirefoxDriverService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// Licensed to the Software Freedom Conservancy (SFC) under one | ||
// or more contributor license agreements. See the NOTICE file | ||
// distributed with this work for additional information | ||
// regarding copyright ownership. The SFC licenses this file | ||
// to you under the Apache License, Version 2.0 (the | ||
// "License"); you may not use this file except in compliance | ||
// with the License. You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, | ||
// software distributed under the License is distributed on an | ||
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
// KIND, either express or implied. See the License for the | ||
// specific language governing permissions and limitations | ||
// under the License. | ||
|
||
package org.openqa.selenium.firefox; | ||
|
||
import com.google.common.collect.ImmutableList; | ||
import com.google.common.collect.ImmutableMap; | ||
|
||
import org.openqa.selenium.remote.service.DriverService; | ||
|
||
import java.io.File; | ||
import java.io.IOException; | ||
|
||
public abstract class FirefoxDriverService extends DriverService { | ||
|
||
/** | ||
* @param executable The GeckoDriver executable. | ||
* @param port Which port to start the GeckoDriver on. | ||
* @param args The arguments to the launched server. | ||
* @param environment The environment for the launched server. | ||
* @throws IOException If an I/O error occurs. | ||
*/ | ||
public FirefoxDriverService( | ||
File executable, | ||
int port, | ||
ImmutableList<String> args, | ||
ImmutableMap<String, String> environment) throws IOException { | ||
super(executable, port, args, environment); | ||
} | ||
|
||
public static abstract class Builder<DS extends FirefoxDriverService, B extends FirefoxDriverService.Builder<?, ?>> | ||
extends DriverService.Builder<DS, B> { | ||
|
||
protected abstract boolean isLegacy(); | ||
protected abstract Builder withOptions(FirefoxOptions options); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
java/client/src/org/openqa/selenium/firefox/module-info-legacy.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Licensed to the Software Freedom Conservancy (SFC) under one | ||
// or more contributor license agreements. See the NOTICE file | ||
// distributed with this work for additional information | ||
// regarding copyright ownership. The SFC licenses this file | ||
// to you under the Apache License, Version 2.0 (the | ||
// "License"); you may not use this file except in compliance | ||
// with the License. You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, | ||
// software distributed under the License is distributed on an | ||
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
// KIND, either express or implied. See the License for the | ||
// specific language governing permissions and limitations | ||
// under the License. | ||
|
||
module org.openqa.selenium.firefox { | ||
requires java.xml; | ||
|
||
requires transitive com.google.common; | ||
requires transitive java.logging; | ||
requires transitive org.openqa.selenium.core; | ||
requires transitive org.openqa.selenium.remote; | ||
|
||
exports org.openqa.selenium.firefox; | ||
|
||
provides org.openqa.selenium.remote.service.DriverService$Builder with | ||
org.openqa.selenium.firefox.XpiDriverService$Builder; | ||
|
||
provides org.openqa.selenium.WebDriverInfo with | ||
org.openqa.selenium.firefox.XpiDriverInfo; | ||
|
||
} |
Oops, something went wrong.