Remove pointless Timeouts subclass in FirefoxDriver
Presumably this was here for a Really Good Reason.
import static org.openqa.selenium.firefox.FirefoxOptions.FIREFOX_OPTIONS;
import static org.openqa.selenium.remote.CapabilityType.PROXY;
-import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
-import java.util.concurrent.TimeUnit;
import java.util.logging.Logger;
/**
@@ -307,30 +305,6 @@ public void kill() {
}
}
- @Override
- public Options manage() {
- return new RemoteWebDriverOptions() {
- @Override
- public Timeouts timeouts() {
- return new RemoteTimeouts() {
- public Timeouts implicitlyWait(long time, TimeUnit unit) {
- execute(DriverCommand.SET_TIMEOUT, ImmutableMap.of(
- "type", "implicit",
- "ms", TimeUnit.MILLISECONDS.convert(time, unit)));
- return this;
- }
-
- public Timeouts setScriptTimeout(long time, TimeUnit unit) {
- execute(DriverCommand.SET_TIMEOUT, ImmutableMap.of(
- "type", "script",
- "ms", TimeUnit.MILLISECONDS.convert(time, unit)));
- return this;
- }
- };
- }
- };
- }
-
private static boolean isLegacy(Capabilities desiredCapabilities) {
Boolean forceMarionette = forceMarionetteFromSystemProperty();
if (forceMarionette != null) {
