Skip to content

Commit

Permalink
[java] Removing deprecated OVERLAPPING_CHECK_DISABLED cap
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed Dec 7, 2022
1 parent c583458 commit 0394563
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
5 changes: 0 additions & 5 deletions java/src/org/openqa/selenium/remote/CapabilityType.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,6 @@ public interface CapabilityType {
*/
@Deprecated
String UNEXPECTED_ALERT_BEHAVIOUR = "unexpectedAlertBehaviour";
/**
* @deprecated Non W3C compliant
*/
@Deprecated
String OVERLAPPING_CHECK_DISABLED = "overlappingCheckDisabled";

String BROWSER_NAME = "browserName";
String PLATFORM_NAME = "platformName";
Expand Down
21 changes: 0 additions & 21 deletions java/test/org/openqa/selenium/firefox/FirefoxDriverTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.build.InProject;
import org.openqa.selenium.remote.CapabilityType;
import org.openqa.selenium.remote.Command;
import org.openqa.selenium.remote.CommandExecutor;
import org.openqa.selenium.remote.DriverCommand;
Expand All @@ -50,7 +49,6 @@
import org.openqa.selenium.testing.NeedsFreshDriver;
import org.openqa.selenium.testing.NoDriverAfterTest;
import org.openqa.selenium.testing.NoDriverBeforeTest;
import org.openqa.selenium.testing.NotYetImplemented;
import org.openqa.selenium.testing.drivers.WebDriverBuilder;

import java.io.File;
Expand Down Expand Up @@ -524,25 +522,6 @@ void searchingByCssDoesNotOverwriteExistingSizzleDefinition() {
.isEqualTo("original sizzle value");
}

@Test
@NotYetImplemented(value = FIREFOX, reason = "https://bugzilla.mozilla.org/show_bug.cgi?id=1415067")
@NoDriverBeforeTest
public void testFirefoxCanNativelyClickOverlappingElements() {
FirefoxOptions options = new FirefoxOptions();
options.setCapability(CapabilityType.OVERLAPPING_CHECK_DISABLED, true);
localDriver = new WebDriverBuilder().get(options);
localDriver.get(appServer.whereIs("click_tests/overlapping_elements.html"));
localDriver.findElement(By.id("under")).click();
assertThat(localDriver.findElement(By.id("log")).getText())
.isEqualTo("Log:\n"
+ "mousedown in over (handled by over)\n"
+ "mousedown in over (handled by body)\n"
+ "mouseup in over (handled by over)\n"
+ "mouseup in over (handled by body)\n"
+ "click in over (handled by over)\n"
+ "click in over (handled by body)");
}

@Test
void canAddRemoveXpiExtensions() {
Path extension = InProject.locate(EXT_XPI);
Expand Down

0 comments on commit 0394563

Please sign in to comment.