From daad06eee702dfe3d575a0697e656e11914eea15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Sautter?= Date: Mon, 2 Oct 2023 09:29:24 +0200 Subject: [PATCH] [java] remove the unused htmlunit-driver from the unit tests --- java/maven_deps.bzl | 6 - java/maven_install.json | 681 +----------------- java/test/org/openqa/selenium/AlertsTest.java | 2 - java/test/org/openqa/selenium/ClearTest.java | 8 - .../openqa/selenium/ClickScrollingTest.java | 2 - .../selenium/CorrectEventFiringTest.java | 4 - .../openqa/selenium/ElementAttributeTest.java | 2 - .../selenium/ElementDomAttributeTest.java | 2 - .../openqa/selenium/ElementFindingTest.java | 4 - .../ExecutingAsyncJavascriptTest.java | 2 - .../selenium/ExecutingJavascriptTest.java | 7 - .../openqa/selenium/FrameSwitchingTest.java | 2 - .../selenium/HistoryNavigationTest.java | 5 - .../openqa/selenium/PageLoadTimeOutTest.java | 3 - .../openqa/selenium/PositionAndSizeTest.java | 2 - .../selenium/SelectElementHandlingTest.java | 4 - .../org/openqa/selenium/SvgDocumentTest.java | 4 - .../org/openqa/selenium/SvgElementTest.java | 4 - .../org/openqa/selenium/TextHandlingTest.java | 3 - .../selenium/UnexpectedAlertBehaviorTest.java | 5 - java/test/org/openqa/selenium/UploadTest.java | 4 - .../org/openqa/selenium/VisibilityTest.java | 3 - .../openqa/selenium/WindowSwitchingTest.java | 2 - .../CombinedInputActionsTest.java | 4 - .../interactions/DefaultKeyboardTest.java | 6 - .../interactions/DefaultMouseTest.java | 10 - .../interactions/DragAndDropTest.java | 2 - .../selenium/interactions/PenPointerTest.java | 10 - .../selenium/logging/AvailableLogsTest.java | 2 - .../openqa/selenium/logging/GetLogsTest.java | 2 - .../logging/PerformanceLogTypeTest.java | 2 - .../logging/PerformanceLoggingTest.java | 2 - .../remote/RemoteWebDriverScreenshotTest.java | 2 - .../org/openqa/selenium/testing/BUILD.bazel | 1 - .../selenium/testing/TestUtilities.java | 6 +- .../selenium/testing/drivers/BUILD.bazel | 1 - .../drivers/DefaultDriverSupplier.java | 5 - 37 files changed, 6 insertions(+), 810 deletions(-) diff --git a/java/maven_deps.bzl b/java/maven_deps.bzl index d2083aec21b75..b087e59e98841 100644 --- a/java/maven_deps.bzl +++ b/java/maven_deps.bzl @@ -98,7 +98,6 @@ def selenium_java_deps(): "org.mockito:mockito-core:4.11.0", "org.mockito:mockito-inline:4.11.0", "org.redisson:redisson:3.23.2", - "org.seleniumhq.selenium:htmlunit-driver:4.11.0", "org.slf4j:slf4j-api:2.0.7", "org.slf4j:slf4j-jdk14:2.0.7", "org.zeromq:jeromq:0.5.3", @@ -108,11 +107,6 @@ def selenium_java_deps(): "org.hamcrest:hamcrest-core", "io.netty:netty-all", # Depend on the actual things you need ], - override_targets = { - "org.seleniumhq.selenium:selenium-api": "@//java/src/org/openqa/selenium:core", - "org.seleniumhq.selenium:selenium-remote-driver": "@//java/src/org/openqa/selenium/remote:remote", - "org.seleniumhq.selenium:selenium-support": "@//java/src/org/openqa/selenium/support", - }, fail_on_missing_checksum = True, fail_if_repin_required = True, fetch_sources = True, diff --git a/java/maven_install.json b/java/maven_install.json index 841ae2d5eb387..f64de36870318 100644 --- a/java/maven_install.json +++ b/java/maven_install.json @@ -1,7 +1,7 @@ { "__AUTOGENERATED_FILE_DO_NOT_MODIFY_THIS_FILE_MANUALLY": "THERE_IS_NO_DATA_ONLY_ZUUL", - "__INPUT_ARTIFACTS_HASH": 991709172, - "__RESOLVED_ARTIFACTS_HASH": 1120536062, + "__INPUT_ARTIFACTS_HASH": 1617623649, + "__RESOLVED_ARTIFACTS_HASH": 2144519154, "artifacts": { "com.beust:jcommander": { "shasums": { @@ -178,13 +178,6 @@ }, "version": "3.2.0" }, - "com.shapesecurity:salvation2": { - "shasums": { - "jar": "a1a0f5238a07f246c9e206725f697e5623e93b729d8fd8b148fc627bf9a27c07", - "sources": "b10a798a9f988eaac6d053f445d5769f6f51dc89164aae16901ea37234d8af3c" - }, - "version": "3.0.1" - }, "com.sun.activation:jakarta.activation": { "shasums": { "jar": "02156773e4ae9d048d14a56ad35d644bee9f1052a791d072df3ded3c656e6e1a", @@ -208,10 +201,10 @@ }, "commons-io:commons-io": { "shasums": { - "jar": "15093cffda2a0c65783c1d371de55548303cc158df94a66fc6cd15d25c3e2ef8", - "sources": "7fca56242374a75f9104836b2da299fb91aee05f263303db69ad5bb886be5249" + "jar": "a10418348d234968600ccb1d988efcbbd08716e1d96936ccc1880e7d22513474", + "sources": "3b69b518d9a844732e35509b79e499fca63a960ee4301b1c96dc32e87f3f60a1" }, - "version": "2.10.0" + "version": "2.5" }, "commons-logging:commons-logging": { "shasums": { @@ -220,13 +213,6 @@ }, "version": "1.2" }, - "commons-net:commons-net": { - "shasums": { - "jar": "e3c1566f821b84489308cd933f57e8c00dd8714dc96b898bef844386510d3461", - "sources": "b910528017f757a8b54f4e764d3e0fadccf7a25aaf2acd666674585ae6e58b55" - }, - "version": "3.9.0" - }, "dev.failsafe:failsafe": { "shasums": { "jar": "2c5dc879a6dac7ea3a7b29d795e27bd49b8e7908b05c2f3e56053c19d79850f5", @@ -559,13 +545,6 @@ }, "version": "11.4" }, - "net.sourceforge.htmlunit:htmlunit": { - "shasums": { - "jar": "9957f53bd8eb96d5afc78766415486567549d9b204dc5d931a5690f8f10155ee", - "sources": "93a22d875c6db84746180fd620f523da65eea5c713673ec49ded7c0d0a34d662" - }, - "version": "2.70.0" - }, "net.sourceforge.htmlunit:htmlunit-core-js": { "shasums": { "jar": "7008cd93de74c8413b94ecf8b63fe642ee73168c5beba8c33b76ac80c4e4865c", @@ -573,27 +552,6 @@ }, "version": "2.70.0" }, - "net.sourceforge.htmlunit:htmlunit-cssparser": { - "shasums": { - "jar": "c684323dc4e2198d0abebe5f0c025560c3c10c34c1d228646e40ae747135f607", - "sources": "8787b79b62c9e0f6472c3b0f02e4fadbe028fecfd5355404077cd2e88dd4c7c7" - }, - "version": "1.14.0" - }, - "net.sourceforge.htmlunit:htmlunit-xpath": { - "shasums": { - "jar": "3eaee2f5058da2ebcf5c74f0d977c032cfbd9300564eb49870dce399706b0a73", - "sources": "f8a6465dd4f64a34da81b396c0b1d6740ba9f301718a808d30adb3b3559b21d6" - }, - "version": "2.70.0" - }, - "net.sourceforge.htmlunit:neko-htmlunit": { - "shasums": { - "jar": "e9e011e102ef85cfb4369580babd60a5c62b806e21224451f7e3e1949e475565", - "sources": "d082f1d317d4153f93f23ad9e24ba694dd104177cd8d03fe19c6f5fa97e43120" - }, - "version": "2.70.0" - }, "org.apache.bcel:bcel": { "shasums": { "jar": "bdeb381d0d19999e221e6a0f8d8bf44f5b19c2e57eabf68b70dc098652aefaf5", @@ -643,27 +601,6 @@ }, "version": "5.1.3" }, - "org.apache.httpcomponents:httpclient": { - "shasums": { - "jar": "c8bc7e1c51a6d4ce72f40d2ebbabf1c4b68bfe76e732104b04381b493478e9d6", - "sources": "55b01f9f4cbec9ac646866a4b64b176570d79e293a556796b5b0263d047ef8e6" - }, - "version": "4.5.14" - }, - "org.apache.httpcomponents:httpcore": { - "shasums": { - "jar": "6c9b3dd142a09dc468e23ad39aad6f75a0f2b85125104469f026e52a474e464f", - "sources": "705f8cf3671093b6c1db16bbf6971a7ef400e3819784f1af53e5bc3e67b5a9a0" - }, - "version": "4.4.16" - }, - "org.apache.httpcomponents:httpmime": { - "shasums": { - "jar": "d401243d5c6eae928a37121b6e819158c8c32ea0584793e7285bb489ab2a3d17", - "sources": "9b8c59ecd259d16a026945abb5c2a82f403b6c3dcc1588dbc2532f2cd5d4e83d" - }, - "version": "4.5.14" - }, "org.apache.logging.log4j:log4j-api": { "shasums": { "jar": "2f43eea679ea66f14ca0f13fec2a8600ac124f5a5231dcb4df8393eddcb97550", @@ -727,13 +664,6 @@ }, "version": "1.70" }, - "org.brotli:dec": { - "shasums": { - "jar": "615c0c3efef990d77831104475fba6a1f7971388691d4bad1471ad84101f6d52", - "sources": "064ac1e41f475c1fd0479b6505f44b6e3bb044b948bddc75d56a496ebb85fbc3" - }, - "version": "0.1.2" - }, "org.checkerframework:checker-qual": { "shasums": { "jar": "e316255bbfcd9fe50d165314b85abb2b33cb2a66a93c491db648e498a82c2de1", @@ -748,55 +678,6 @@ }, "version": "2.1.3" }, - "org.eclipse.jetty.websocket:websocket-api": { - "shasums": { - "jar": "cd64551abf8e5130b01f1063fe94d4c58df74f134bb684f0b9bed56196e85f1d", - "sources": "7d6224315742a1214fba2cb3492ed5849741122298b5eff17e59b1f50d4ade54" - }, - "version": "9.4.50.v20221201" - }, - "org.eclipse.jetty.websocket:websocket-client": { - "shasums": { - "jar": "7f8d9861f87e59cbe1fd6beadeae0b32f1a7cc78ffccf2f13e8b4db9dd70602b", - "sources": "88be3d0110d3b9f78ad7c8996d41f2fe5bf2bbdfed90dabf12390e479a5cebda" - }, - "version": "9.4.50.v20221201" - }, - "org.eclipse.jetty.websocket:websocket-common": { - "shasums": { - "jar": "d6b8bba5e8864eaf98d853458403a75dc401c4858badf9d009941f402cc2671b", - "sources": "c68f5cd7413f8511afde5df620ab6dab1dad18fbe96adb35e19d89c6754a9955" - }, - "version": "9.4.50.v20221201" - }, - "org.eclipse.jetty:jetty-client": { - "shasums": { - "jar": "b216e173d79c0adce1da3d0894abe418453851a3dc6cc5006e5d3003dcac88fd", - "sources": "e29b882a38ee652e82d9759435ca4cfabf78434c715095fcac703b181aa16e5f" - }, - "version": "9.4.50.v20221201" - }, - "org.eclipse.jetty:jetty-http": { - "shasums": { - "jar": "3e3c569b9f39dbd1c9ae6d67e32512e072c50b4845866e941bcfd741e0ef5088", - "sources": "056c9b41dd5e30504132b4a5556b19085fd03e6746cb17881ae8bcfb9b8d8f63" - }, - "version": "9.4.50.v20221201" - }, - "org.eclipse.jetty:jetty-io": { - "shasums": { - "jar": "dc51976bc91236279c82e9f1a51e82631562eea518e8654097d271b8dd0acb0b", - "sources": "f339b03abc5036be066c1d919eed9667d73017d03bc2935826054bc53e5a614b" - }, - "version": "9.4.50.v20221201" - }, - "org.eclipse.jetty:jetty-util": { - "shasums": { - "jar": "38891b3480b582d1f2646cf94f33e1675bdc7c814657e1742424c98193c9117b", - "sources": "d3c3e0f19b5ed6a34c9b135120ded21b81a3d88344ed8ddda2b9e24331668702" - }, - "version": "9.4.50.v20221201" - }, "org.eclipse.mylyn.github:org.eclipse.egit.github.core": { "shasums": { "jar": "5ae0ce75c0d4938e1fe32d5efbb0204e38585e76454bd16d91b5a59852a1e64e", @@ -972,55 +853,6 @@ }, "version": "3.23.2" }, - "org.seleniumhq.selenium:htmlunit-driver": { - "shasums": { - "jar": "f54ec2138e2ad788a8957d0e939b4eabe25a52d71224168ec60605b8d70a01d9", - "sources": "317d5094d4c30627ef1d2cf845768f7e6ee2bbff5bd5e5ecf70e2bf2a467688b" - }, - "version": "4.11.0" - }, - "org.seleniumhq.selenium:selenium-api": { - "shasums": { - "jar": "8c145530c654edec393a578852887b619722600c9ddd7b9f8629350392dad12c", - "sources": "edf51a8b2c993d48c41bee268f44d66ffaf71a7c801509bd892415ccbef5536f" - }, - "version": "4.11.0" - }, - "org.seleniumhq.selenium:selenium-http": { - "shasums": { - "jar": "fceff573397010c18d8e56d1c4b37dadfffa8da5baf9771caf530f5ed52c483b", - "sources": "2bfb79f3900947825c9dc6e5e6ac93e973953e5b817528d6915464bbb44fd89c" - }, - "version": "4.11.0" - }, - "org.seleniumhq.selenium:selenium-json": { - "shasums": { - "jar": "5383937f742f156c1e7e3ed584832c29b3d661fd81bf44db3ee0a830627d384d", - "sources": "a1b29d04e134658ba7452697a8ddb1e622781eff1bfed7d6359f0f193da14afe" - }, - "version": "4.11.0" - }, - "org.seleniumhq.selenium:selenium-manager": { - "shasums": { - "jar": "47e1379efab2258620bd92c8730845b6a80d48d5660067486cd676eb5a93a788", - "sources": "33c528317d41a8cf025decdb0862f5f30d082be9c964522ede5990a4c89fe651" - }, - "version": "4.11.0" - }, - "org.seleniumhq.selenium:selenium-remote-driver": { - "shasums": { - "jar": "e7fd521c0c769803fedc90d2715c8c2afedcb30213e11c13309c41ba33a14234", - "sources": "125236a09c90509382186f83e7c11a966877ac6ddc7fb3fd90a86aff61b3eeeb" - }, - "version": "4.11.0" - }, - "org.seleniumhq.selenium:selenium-support": { - "shasums": { - "jar": "1da9fbbe99971bac1a535b2aaede1442ae6b2920f44a4aabeb4334cb87ebd0ff", - "sources": "135596d8516fe833b08c4958b7f20d861c0fdaf80120d44f5ee94cb3d3732cda" - }, - "version": "4.11.0" - }, "org.slf4j:slf4j-api": { "shasums": { "jar": "5d6298b93a1905c32cda6478808ac14c2d4a47e91535e53c41f7feeb85d946f4", @@ -1341,22 +1173,6 @@ "org.xmlresolver:xmlresolver", "org.xmlresolver:xmlresolver:jar:data" ], - "net.sourceforge.htmlunit:htmlunit": [ - "com.shapesecurity:salvation2", - "commons-codec:commons-codec", - "commons-io:commons-io", - "commons-logging:commons-logging", - "commons-net:commons-net", - "net.sourceforge.htmlunit:htmlunit-core-js", - "net.sourceforge.htmlunit:htmlunit-cssparser", - "net.sourceforge.htmlunit:htmlunit-xpath", - "net.sourceforge.htmlunit:neko-htmlunit", - "org.apache.commons:commons-lang3", - "org.apache.commons:commons-text", - "org.apache.httpcomponents:httpmime", - "org.brotli:dec", - "org.eclipse.jetty.websocket:websocket-client" - ], "org.apache.commons:commons-text": [ "org.apache.commons:commons-lang3" ], @@ -1368,13 +1184,6 @@ "org.apache.httpcomponents.core5:httpcore5-h2": [ "org.apache.httpcomponents.core5:httpcore5" ], - "org.apache.httpcomponents:httpclient": [ - "commons-logging:commons-logging", - "org.apache.httpcomponents:httpcore" - ], - "org.apache.httpcomponents:httpmime": [ - "org.apache.httpcomponents:httpclient" - ], "org.apache.logging.log4j:log4j-core": [ "org.apache.logging.log4j:log4j-api" ], @@ -1404,28 +1213,6 @@ "org.bouncycastle:bcutil-jdk15on": [ "org.bouncycastle:bcprov-jdk15on" ], - "org.eclipse.jetty.websocket:websocket-client": [ - "org.eclipse.jetty.websocket:websocket-common", - "org.eclipse.jetty:jetty-client", - "org.eclipse.jetty:jetty-io", - "org.eclipse.jetty:jetty-util" - ], - "org.eclipse.jetty.websocket:websocket-common": [ - "org.eclipse.jetty.websocket:websocket-api", - "org.eclipse.jetty:jetty-io", - "org.eclipse.jetty:jetty-util" - ], - "org.eclipse.jetty:jetty-client": [ - "org.eclipse.jetty:jetty-http", - "org.eclipse.jetty:jetty-io" - ], - "org.eclipse.jetty:jetty-http": [ - "org.eclipse.jetty:jetty-io", - "org.eclipse.jetty:jetty-util" - ], - "org.eclipse.jetty:jetty-io": [ - "org.eclipse.jetty:jetty-util" - ], "org.eclipse.mylyn.github:org.eclipse.egit.github.core": [ "com.google.code.gson:gson" ], @@ -1511,62 +1298,6 @@ "org.reactivestreams:reactive-streams", "org.slf4j:slf4j-api" ], - "org.seleniumhq.selenium:htmlunit-driver": [ - "net.sourceforge.htmlunit:htmlunit", - "org.seleniumhq.selenium:selenium-api", - "org.seleniumhq.selenium:selenium-support" - ], - "org.seleniumhq.selenium:selenium-http": [ - "com.google.guava:guava", - "dev.failsafe:failsafe", - "org.seleniumhq.selenium:selenium-api", - "org.seleniumhq.selenium:selenium-json" - ], - "org.seleniumhq.selenium:selenium-json": [ - "org.seleniumhq.selenium:selenium-api" - ], - "org.seleniumhq.selenium:selenium-manager": [ - "com.google.guava:guava", - "org.seleniumhq.selenium:selenium-api", - "org.seleniumhq.selenium:selenium-json" - ], - "org.seleniumhq.selenium:selenium-remote-driver": [ - "com.google.auto.service:auto-service-annotations", - "com.google.guava:guava", - "io.netty:netty-buffer", - "io.netty:netty-codec-http", - "io.netty:netty-common", - "io.netty:netty-transport", - "io.netty:netty-transport-classes-epoll", - "io.netty:netty-transport-classes-kqueue", - "io.netty:netty-transport-native-epoll", - "io.netty:netty-transport-native-kqueue", - "io.netty:netty-transport-native-unix-common", - "io.opentelemetry:opentelemetry-api", - "io.opentelemetry:opentelemetry-context", - "io.opentelemetry:opentelemetry-exporter-logging", - "io.opentelemetry:opentelemetry-sdk", - "io.opentelemetry:opentelemetry-sdk-common", - "io.opentelemetry:opentelemetry-sdk-extension-autoconfigure", - "io.opentelemetry:opentelemetry-sdk-extension-autoconfigure-spi", - "io.opentelemetry:opentelemetry-sdk-trace", - "io.opentelemetry:opentelemetry-semconv", - "net.bytebuddy:byte-buddy", - "org.apache.commons:commons-exec", - "org.asynchttpclient:async-http-client", - "org.seleniumhq.selenium:selenium-api", - "org.seleniumhq.selenium:selenium-http", - "org.seleniumhq.selenium:selenium-json", - "org.seleniumhq.selenium:selenium-manager" - ], - "org.seleniumhq.selenium:selenium-support": [ - "com.google.auto.service:auto-service-annotations", - "com.google.guava:guava", - "net.bytebuddy:byte-buddy", - "org.seleniumhq.selenium:selenium-api", - "org.seleniumhq.selenium:selenium-json", - "org.seleniumhq.selenium:selenium-remote-driver" - ], "org.slf4j:slf4j-jdk14": [ "org.slf4j:slf4j-api" ], @@ -1882,12 +1613,6 @@ "org.dataloader.stats", "org.dataloader.stats.context" ], - "com.shapesecurity:salvation2": [ - "com.shapesecurity.salvation2", - "com.shapesecurity.salvation2.Directives", - "com.shapesecurity.salvation2.URLs", - "com.shapesecurity.salvation2.Values" - ], "com.sun.activation:jakarta.activation": [ "com.sun.activation.registries", "com.sun.activation.viewers", @@ -1908,12 +1633,8 @@ "commons-io:commons-io": [ "org.apache.commons.io", "org.apache.commons.io.comparator", - "org.apache.commons.io.file", - "org.apache.commons.io.file.spi", "org.apache.commons.io.filefilter", - "org.apache.commons.io.function", "org.apache.commons.io.input", - "org.apache.commons.io.input.buffer", "org.apache.commons.io.monitor", "org.apache.commons.io.output", "org.apache.commons.io.serialization" @@ -1922,28 +1643,6 @@ "org.apache.commons.logging", "org.apache.commons.logging.impl" ], - "commons-net:commons-net": [ - "org.apache.commons.net", - "org.apache.commons.net.bsd", - "org.apache.commons.net.chargen", - "org.apache.commons.net.daytime", - "org.apache.commons.net.discard", - "org.apache.commons.net.echo", - "org.apache.commons.net.finger", - "org.apache.commons.net.ftp", - "org.apache.commons.net.ftp.parser", - "org.apache.commons.net.imap", - "org.apache.commons.net.io", - "org.apache.commons.net.nntp", - "org.apache.commons.net.ntp", - "org.apache.commons.net.pop3", - "org.apache.commons.net.smtp", - "org.apache.commons.net.telnet", - "org.apache.commons.net.tftp", - "org.apache.commons.net.time", - "org.apache.commons.net.util", - "org.apache.commons.net.whois" - ], "dev.failsafe:failsafe": [ "dev.failsafe", "dev.failsafe.event", @@ -2444,70 +2143,6 @@ "net.sf.saxon.xpath", "net.sf.saxon.z" ], - "net.sourceforge.htmlunit:htmlunit": [ - "com.gargoylesoftware.htmlunit", - "com.gargoylesoftware.htmlunit.activex.javascript.msxml", - "com.gargoylesoftware.htmlunit.attachment", - "com.gargoylesoftware.htmlunit.css", - "com.gargoylesoftware.htmlunit.html", - "com.gargoylesoftware.htmlunit.html.applets", - "com.gargoylesoftware.htmlunit.html.impl", - "com.gargoylesoftware.htmlunit.html.parser", - "com.gargoylesoftware.htmlunit.html.parser.neko", - "com.gargoylesoftware.htmlunit.html.serializer", - "com.gargoylesoftware.htmlunit.html.xpath", - "com.gargoylesoftware.htmlunit.httpclient", - "com.gargoylesoftware.htmlunit.javascript", - "com.gargoylesoftware.htmlunit.javascript.background", - "com.gargoylesoftware.htmlunit.javascript.configuration", - "com.gargoylesoftware.htmlunit.javascript.host", - "com.gargoylesoftware.htmlunit.javascript.host.animations", - "com.gargoylesoftware.htmlunit.javascript.host.arrays", - "com.gargoylesoftware.htmlunit.javascript.host.canvas", - "com.gargoylesoftware.htmlunit.javascript.host.canvas.ext", - "com.gargoylesoftware.htmlunit.javascript.host.crypto", - "com.gargoylesoftware.htmlunit.javascript.host.css", - "com.gargoylesoftware.htmlunit.javascript.host.dom", - "com.gargoylesoftware.htmlunit.javascript.host.event", - "com.gargoylesoftware.htmlunit.javascript.host.fetch", - "com.gargoylesoftware.htmlunit.javascript.host.file", - "com.gargoylesoftware.htmlunit.javascript.host.geo", - "com.gargoylesoftware.htmlunit.javascript.host.html", - "com.gargoylesoftware.htmlunit.javascript.host.idb", - "com.gargoylesoftware.htmlunit.javascript.host.intl", - "com.gargoylesoftware.htmlunit.javascript.host.media", - "com.gargoylesoftware.htmlunit.javascript.host.media.midi", - "com.gargoylesoftware.htmlunit.javascript.host.media.presentation", - "com.gargoylesoftware.htmlunit.javascript.host.media.rtc", - "com.gargoylesoftware.htmlunit.javascript.host.network", - "com.gargoylesoftware.htmlunit.javascript.host.payment", - "com.gargoylesoftware.htmlunit.javascript.host.performance", - "com.gargoylesoftware.htmlunit.javascript.host.security", - "com.gargoylesoftware.htmlunit.javascript.host.speech", - "com.gargoylesoftware.htmlunit.javascript.host.svg", - "com.gargoylesoftware.htmlunit.javascript.host.worker", - "com.gargoylesoftware.htmlunit.javascript.host.xml", - "com.gargoylesoftware.htmlunit.javascript.polyfill", - "com.gargoylesoftware.htmlunit.javascript.regexp", - "com.gargoylesoftware.htmlunit.platform", - "com.gargoylesoftware.htmlunit.platform.canvas.rendering", - "com.gargoylesoftware.htmlunit.platform.dom.traversal", - "com.gargoylesoftware.htmlunit.platform.geom", - "com.gargoylesoftware.htmlunit.platform.image", - "com.gargoylesoftware.htmlunit.platform.util", - "com.gargoylesoftware.htmlunit.protocol", - "com.gargoylesoftware.htmlunit.protocol.about", - "com.gargoylesoftware.htmlunit.protocol.data", - "com.gargoylesoftware.htmlunit.protocol.javascript", - "com.gargoylesoftware.htmlunit.svg", - "com.gargoylesoftware.htmlunit.util", - "com.gargoylesoftware.htmlunit.util.geometry", - "com.gargoylesoftware.htmlunit.websocket", - "com.gargoylesoftware.htmlunit.webstart", - "com.gargoylesoftware.htmlunit.xml", - "netscape", - "netscape.javascript" - ], "net.sourceforge.htmlunit:htmlunit-core-js": [ "net.sourceforge.htmlunit.corejs.classfile", "net.sourceforge.htmlunit.corejs.javascript", @@ -2530,41 +2165,6 @@ "net.sourceforge.htmlunit.corejs.javascript.v8dtoa", "net.sourceforge.htmlunit.corejs.javascript.xml" ], - "net.sourceforge.htmlunit:htmlunit-cssparser": [ - "com.gargoylesoftware.css.dom", - "com.gargoylesoftware.css.parser", - "com.gargoylesoftware.css.parser.condition", - "com.gargoylesoftware.css.parser.javacc", - "com.gargoylesoftware.css.parser.media", - "com.gargoylesoftware.css.parser.selector", - "com.gargoylesoftware.css.util" - ], - "net.sourceforge.htmlunit:htmlunit-xpath": [ - "net.sourceforge.htmlunit.xpath", - "net.sourceforge.htmlunit.xpath.axes", - "net.sourceforge.htmlunit.xpath.compiler", - "net.sourceforge.htmlunit.xpath.functions", - "net.sourceforge.htmlunit.xpath.objects", - "net.sourceforge.htmlunit.xpath.operations", - "net.sourceforge.htmlunit.xpath.patterns", - "net.sourceforge.htmlunit.xpath.res", - "net.sourceforge.htmlunit.xpath.xml.dtm", - "net.sourceforge.htmlunit.xpath.xml.dtm.ref", - "net.sourceforge.htmlunit.xpath.xml.dtm.ref.dom2dtm", - "net.sourceforge.htmlunit.xpath.xml.utils" - ], - "net.sourceforge.htmlunit:neko-htmlunit": [ - "net.sourceforge.htmlunit.cyberneko", - "net.sourceforge.htmlunit.cyberneko.filters", - "net.sourceforge.htmlunit.cyberneko.parsers", - "net.sourceforge.htmlunit.xerces.dom", - "net.sourceforge.htmlunit.xerces.impl", - "net.sourceforge.htmlunit.xerces.impl.msg", - "net.sourceforge.htmlunit.xerces.parsers", - "net.sourceforge.htmlunit.xerces.util", - "net.sourceforge.htmlunit.xerces.xni", - "net.sourceforge.htmlunit.xerces.xni.parser" - ], "org.apache.bcel:bcel": [ "org.apache.bcel", "org.apache.bcel.classfile", @@ -2686,55 +2286,6 @@ "org.apache.hc.core5.http2.protocol", "org.apache.hc.core5.http2.ssl" ], - "org.apache.httpcomponents:httpclient": [ - "org.apache.http.auth", - "org.apache.http.auth.params", - "org.apache.http.client", - "org.apache.http.client.config", - "org.apache.http.client.entity", - "org.apache.http.client.methods", - "org.apache.http.client.params", - "org.apache.http.client.protocol", - "org.apache.http.client.utils", - "org.apache.http.conn", - "org.apache.http.conn.params", - "org.apache.http.conn.routing", - "org.apache.http.conn.scheme", - "org.apache.http.conn.socket", - "org.apache.http.conn.ssl", - "org.apache.http.conn.util", - "org.apache.http.cookie", - "org.apache.http.cookie.params", - "org.apache.http.impl.auth", - "org.apache.http.impl.client", - "org.apache.http.impl.conn", - "org.apache.http.impl.conn.tsccm", - "org.apache.http.impl.cookie", - "org.apache.http.impl.execchain" - ], - "org.apache.httpcomponents:httpcore": [ - "org.apache.http", - "org.apache.http.annotation", - "org.apache.http.concurrent", - "org.apache.http.config", - "org.apache.http.entity", - "org.apache.http.impl", - "org.apache.http.impl.bootstrap", - "org.apache.http.impl.entity", - "org.apache.http.impl.io", - "org.apache.http.impl.pool", - "org.apache.http.io", - "org.apache.http.message", - "org.apache.http.params", - "org.apache.http.pool", - "org.apache.http.protocol", - "org.apache.http.ssl", - "org.apache.http.util" - ], - "org.apache.httpcomponents:httpmime": [ - "org.apache.http.entity.mime", - "org.apache.http.entity.mime.content" - ], "org.apache.logging.log4j:log4j-api": [ "org.apache.logging.log4j", "org.apache.logging.log4j.internal", @@ -3093,9 +2644,6 @@ "org.bouncycastle.oer.its", "org.bouncycastle.oer.its.template" ], - "org.brotli:dec": [ - "org.brotli.dec" - ], "org.checkerframework:checker-qual": [ "org.checkerframework.checker.builder.qual", "org.checkerframework.checker.calledmethods.qual", @@ -3144,63 +2692,6 @@ "org.dom4j.xpath", "org.dom4j.xpp" ], - "org.eclipse.jetty.websocket:websocket-api": [ - "org.eclipse.jetty.websocket.api", - "org.eclipse.jetty.websocket.api.annotations", - "org.eclipse.jetty.websocket.api.extensions", - "org.eclipse.jetty.websocket.api.util" - ], - "org.eclipse.jetty.websocket:websocket-client": [ - "org.eclipse.jetty.websocket.client", - "org.eclipse.jetty.websocket.client.io", - "org.eclipse.jetty.websocket.client.masks" - ], - "org.eclipse.jetty.websocket:websocket-common": [ - "org.eclipse.jetty.websocket.common", - "org.eclipse.jetty.websocket.common.events", - "org.eclipse.jetty.websocket.common.events.annotated", - "org.eclipse.jetty.websocket.common.extensions", - "org.eclipse.jetty.websocket.common.extensions.compress", - "org.eclipse.jetty.websocket.common.extensions.fragment", - "org.eclipse.jetty.websocket.common.extensions.identity", - "org.eclipse.jetty.websocket.common.frames", - "org.eclipse.jetty.websocket.common.io", - "org.eclipse.jetty.websocket.common.io.http", - "org.eclipse.jetty.websocket.common.io.payload", - "org.eclipse.jetty.websocket.common.message", - "org.eclipse.jetty.websocket.common.scopes", - "org.eclipse.jetty.websocket.common.util" - ], - "org.eclipse.jetty:jetty-client": [ - "org.eclipse.jetty.client", - "org.eclipse.jetty.client.api", - "org.eclipse.jetty.client.http", - "org.eclipse.jetty.client.jmx", - "org.eclipse.jetty.client.util" - ], - "org.eclipse.jetty:jetty-http": [ - "org.eclipse.jetty.http", - "org.eclipse.jetty.http.pathmap" - ], - "org.eclipse.jetty:jetty-io": [ - "org.eclipse.jetty.io", - "org.eclipse.jetty.io.jmx", - "org.eclipse.jetty.io.ssl" - ], - "org.eclipse.jetty:jetty-util": [ - "org.eclipse.jetty.util", - "org.eclipse.jetty.util.annotation", - "org.eclipse.jetty.util.component", - "org.eclipse.jetty.util.compression", - "org.eclipse.jetty.util.log", - "org.eclipse.jetty.util.preventers", - "org.eclipse.jetty.util.resource", - "org.eclipse.jetty.util.security", - "org.eclipse.jetty.util.ssl", - "org.eclipse.jetty.util.statistic", - "org.eclipse.jetty.util.thread", - "org.eclipse.jetty.util.thread.strategy" - ], "org.eclipse.mylyn.github:org.eclipse.egit.github.core": [ "org.eclipse.egit.github.core", "org.eclipse.egit.github.core.client", @@ -3530,72 +3021,6 @@ "org.redisson.transaction.operation.map", "org.redisson.transaction.operation.set" ], - "org.seleniumhq.selenium:htmlunit-driver": [ - "org.openqa.selenium.htmlunit", - "org.openqa.selenium.htmlunit.logging", - "org.openqa.selenium.htmlunit.w3" - ], - "org.seleniumhq.selenium:selenium-api": [ - "org.openqa.selenium", - "org.openqa.selenium.federatedcredentialmanagement", - "org.openqa.selenium.html5", - "org.openqa.selenium.interactions", - "org.openqa.selenium.internal", - "org.openqa.selenium.logging", - "org.openqa.selenium.logging.profiler", - "org.openqa.selenium.mobile", - "org.openqa.selenium.net", - "org.openqa.selenium.print", - "org.openqa.selenium.virtualauthenticator" - ], - "org.seleniumhq.selenium:selenium-http": [ - "org.openqa.selenium.remote.http" - ], - "org.seleniumhq.selenium:selenium-json": [ - "org.openqa.selenium.json" - ], - "org.seleniumhq.selenium:selenium-manager": [ - "org.openqa.selenium.manager" - ], - "org.seleniumhq.selenium:selenium-remote-driver": [ - "org.openqa.selenium.bidi", - "org.openqa.selenium.bidi.browsingcontext", - "org.openqa.selenium.bidi.log", - "org.openqa.selenium.concurrent", - "org.openqa.selenium.devtools", - "org.openqa.selenium.devtools.events", - "org.openqa.selenium.devtools.idealized", - "org.openqa.selenium.devtools.idealized.browser.model", - "org.openqa.selenium.devtools.idealized.log", - "org.openqa.selenium.devtools.idealized.log.model", - "org.openqa.selenium.devtools.idealized.runtime.model", - "org.openqa.selenium.devtools.idealized.target", - "org.openqa.selenium.devtools.idealized.target.model", - "org.openqa.selenium.devtools.noop", - "org.openqa.selenium.io", - "org.openqa.selenium.os", - "org.openqa.selenium.remote", - "org.openqa.selenium.remote.codec", - "org.openqa.selenium.remote.codec.w3c", - "org.openqa.selenium.remote.html5", - "org.openqa.selenium.remote.http.netty", - "org.openqa.selenium.remote.internal", - "org.openqa.selenium.remote.locators", - "org.openqa.selenium.remote.mobile", - "org.openqa.selenium.remote.service", - "org.openqa.selenium.remote.tracing", - "org.openqa.selenium.remote.tracing.empty", - "org.openqa.selenium.remote.tracing.opentelemetry", - "org.openqa.selenium.support.decorators" - ], - "org.seleniumhq.selenium:selenium-support": [ - "org.openqa.selenium.support", - "org.openqa.selenium.support.events", - "org.openqa.selenium.support.locators", - "org.openqa.selenium.support.pagefactory", - "org.openqa.selenium.support.pagefactory.internal", - "org.openqa.selenium.support.ui" - ], "org.slf4j:slf4j-api": [ "org.slf4j", "org.slf4j.event", @@ -3762,8 +3187,6 @@ "com.graphql-java:graphql-java:jar:sources", "com.graphql-java:java-dataloader", "com.graphql-java:java-dataloader:jar:sources", - "com.shapesecurity:salvation2", - "com.shapesecurity:salvation2:jar:sources", "com.sun.activation:jakarta.activation", "com.sun.activation:jakarta.activation:jar:sources", "com.typesafe.netty:netty-reactive-streams", @@ -3774,8 +3197,6 @@ "commons-io:commons-io:jar:sources", "commons-logging:commons-logging", "commons-logging:commons-logging:jar:sources", - "commons-net:commons-net", - "commons-net:commons-net:jar:sources", "dev.failsafe:failsafe", "dev.failsafe:failsafe:jar:sources", "eu.neilalexander:jnacl", @@ -3873,16 +3294,8 @@ "net.jcip:jcip-annotations:jar:sources", "net.sf.saxon:Saxon-HE", "net.sf.saxon:Saxon-HE:jar:sources", - "net.sourceforge.htmlunit:htmlunit", "net.sourceforge.htmlunit:htmlunit-core-js", "net.sourceforge.htmlunit:htmlunit-core-js:jar:sources", - "net.sourceforge.htmlunit:htmlunit-cssparser", - "net.sourceforge.htmlunit:htmlunit-cssparser:jar:sources", - "net.sourceforge.htmlunit:htmlunit-xpath", - "net.sourceforge.htmlunit:htmlunit-xpath:jar:sources", - "net.sourceforge.htmlunit:htmlunit:jar:sources", - "net.sourceforge.htmlunit:neko-htmlunit", - "net.sourceforge.htmlunit:neko-htmlunit:jar:sources", "org.apache.bcel:bcel", "org.apache.bcel:bcel:jar:sources", "org.apache.commons:commons-exec", @@ -3897,12 +3310,6 @@ "org.apache.httpcomponents.core5:httpcore5-h2", "org.apache.httpcomponents.core5:httpcore5-h2:jar:sources", "org.apache.httpcomponents.core5:httpcore5:jar:sources", - "org.apache.httpcomponents:httpclient", - "org.apache.httpcomponents:httpclient:jar:sources", - "org.apache.httpcomponents:httpcore", - "org.apache.httpcomponents:httpcore:jar:sources", - "org.apache.httpcomponents:httpmime", - "org.apache.httpcomponents:httpmime:jar:sources", "org.apache.logging.log4j:log4j-api", "org.apache.logging.log4j:log4j-api:jar:sources", "org.apache.logging.log4j:log4j-core", @@ -3921,26 +3328,10 @@ "org.bouncycastle:bcprov-jdk15on:jar:sources", "org.bouncycastle:bcutil-jdk15on", "org.bouncycastle:bcutil-jdk15on:jar:sources", - "org.brotli:dec", - "org.brotli:dec:jar:sources", "org.checkerframework:checker-qual", "org.checkerframework:checker-qual:jar:sources", "org.dom4j:dom4j", "org.dom4j:dom4j:jar:sources", - "org.eclipse.jetty.websocket:websocket-api", - "org.eclipse.jetty.websocket:websocket-api:jar:sources", - "org.eclipse.jetty.websocket:websocket-client", - "org.eclipse.jetty.websocket:websocket-client:jar:sources", - "org.eclipse.jetty.websocket:websocket-common", - "org.eclipse.jetty.websocket:websocket-common:jar:sources", - "org.eclipse.jetty:jetty-client", - "org.eclipse.jetty:jetty-client:jar:sources", - "org.eclipse.jetty:jetty-http", - "org.eclipse.jetty:jetty-http:jar:sources", - "org.eclipse.jetty:jetty-io", - "org.eclipse.jetty:jetty-io:jar:sources", - "org.eclipse.jetty:jetty-util", - "org.eclipse.jetty:jetty-util:jar:sources", "org.eclipse.mylyn.github:org.eclipse.egit.github.core", "org.eclipse.mylyn.github:org.eclipse.egit.github.core:jar:sources", "org.hamcrest:hamcrest", @@ -3991,20 +3382,6 @@ "org.reactivestreams:reactive-streams:jar:sources", "org.redisson:redisson", "org.redisson:redisson:jar:sources", - "org.seleniumhq.selenium:htmlunit-driver", - "org.seleniumhq.selenium:htmlunit-driver:jar:sources", - "org.seleniumhq.selenium:selenium-api", - "org.seleniumhq.selenium:selenium-api:jar:sources", - "org.seleniumhq.selenium:selenium-http", - "org.seleniumhq.selenium:selenium-http:jar:sources", - "org.seleniumhq.selenium:selenium-json", - "org.seleniumhq.selenium:selenium-json:jar:sources", - "org.seleniumhq.selenium:selenium-manager", - "org.seleniumhq.selenium:selenium-manager:jar:sources", - "org.seleniumhq.selenium:selenium-remote-driver", - "org.seleniumhq.selenium:selenium-remote-driver:jar:sources", - "org.seleniumhq.selenium:selenium-support", - "org.seleniumhq.selenium:selenium-support:jar:sources", "org.slf4j:slf4j-api", "org.slf4j:slf4j-api:jar:sources", "org.slf4j:slf4j-jdk14", @@ -4071,8 +3448,6 @@ "com.graphql-java:graphql-java:jar:sources", "com.graphql-java:java-dataloader", "com.graphql-java:java-dataloader:jar:sources", - "com.shapesecurity:salvation2", - "com.shapesecurity:salvation2:jar:sources", "com.sun.activation:jakarta.activation", "com.sun.activation:jakarta.activation:jar:sources", "com.typesafe.netty:netty-reactive-streams", @@ -4083,8 +3458,6 @@ "commons-io:commons-io:jar:sources", "commons-logging:commons-logging", "commons-logging:commons-logging:jar:sources", - "commons-net:commons-net", - "commons-net:commons-net:jar:sources", "dev.failsafe:failsafe", "dev.failsafe:failsafe:jar:sources", "eu.neilalexander:jnacl", @@ -4182,16 +3555,8 @@ "net.jcip:jcip-annotations:jar:sources", "net.sf.saxon:Saxon-HE", "net.sf.saxon:Saxon-HE:jar:sources", - "net.sourceforge.htmlunit:htmlunit", "net.sourceforge.htmlunit:htmlunit-core-js", "net.sourceforge.htmlunit:htmlunit-core-js:jar:sources", - "net.sourceforge.htmlunit:htmlunit-cssparser", - "net.sourceforge.htmlunit:htmlunit-cssparser:jar:sources", - "net.sourceforge.htmlunit:htmlunit-xpath", - "net.sourceforge.htmlunit:htmlunit-xpath:jar:sources", - "net.sourceforge.htmlunit:htmlunit:jar:sources", - "net.sourceforge.htmlunit:neko-htmlunit", - "net.sourceforge.htmlunit:neko-htmlunit:jar:sources", "org.apache.bcel:bcel", "org.apache.bcel:bcel:jar:sources", "org.apache.commons:commons-exec", @@ -4206,12 +3571,6 @@ "org.apache.httpcomponents.core5:httpcore5-h2", "org.apache.httpcomponents.core5:httpcore5-h2:jar:sources", "org.apache.httpcomponents.core5:httpcore5:jar:sources", - "org.apache.httpcomponents:httpclient", - "org.apache.httpcomponents:httpclient:jar:sources", - "org.apache.httpcomponents:httpcore", - "org.apache.httpcomponents:httpcore:jar:sources", - "org.apache.httpcomponents:httpmime", - "org.apache.httpcomponents:httpmime:jar:sources", "org.apache.logging.log4j:log4j-api", "org.apache.logging.log4j:log4j-api:jar:sources", "org.apache.logging.log4j:log4j-core", @@ -4230,26 +3589,10 @@ "org.bouncycastle:bcprov-jdk15on:jar:sources", "org.bouncycastle:bcutil-jdk15on", "org.bouncycastle:bcutil-jdk15on:jar:sources", - "org.brotli:dec", - "org.brotli:dec:jar:sources", "org.checkerframework:checker-qual", "org.checkerframework:checker-qual:jar:sources", "org.dom4j:dom4j", "org.dom4j:dom4j:jar:sources", - "org.eclipse.jetty.websocket:websocket-api", - "org.eclipse.jetty.websocket:websocket-api:jar:sources", - "org.eclipse.jetty.websocket:websocket-client", - "org.eclipse.jetty.websocket:websocket-client:jar:sources", - "org.eclipse.jetty.websocket:websocket-common", - "org.eclipse.jetty.websocket:websocket-common:jar:sources", - "org.eclipse.jetty:jetty-client", - "org.eclipse.jetty:jetty-client:jar:sources", - "org.eclipse.jetty:jetty-http", - "org.eclipse.jetty:jetty-http:jar:sources", - "org.eclipse.jetty:jetty-io", - "org.eclipse.jetty:jetty-io:jar:sources", - "org.eclipse.jetty:jetty-util", - "org.eclipse.jetty:jetty-util:jar:sources", "org.eclipse.mylyn.github:org.eclipse.egit.github.core", "org.eclipse.mylyn.github:org.eclipse.egit.github.core:jar:sources", "org.hamcrest:hamcrest", @@ -4300,20 +3643,6 @@ "org.reactivestreams:reactive-streams:jar:sources", "org.redisson:redisson", "org.redisson:redisson:jar:sources", - "org.seleniumhq.selenium:htmlunit-driver", - "org.seleniumhq.selenium:htmlunit-driver:jar:sources", - "org.seleniumhq.selenium:selenium-api", - "org.seleniumhq.selenium:selenium-api:jar:sources", - "org.seleniumhq.selenium:selenium-http", - "org.seleniumhq.selenium:selenium-http:jar:sources", - "org.seleniumhq.selenium:selenium-json", - "org.seleniumhq.selenium:selenium-json:jar:sources", - "org.seleniumhq.selenium:selenium-manager", - "org.seleniumhq.selenium:selenium-manager:jar:sources", - "org.seleniumhq.selenium:selenium-remote-driver", - "org.seleniumhq.selenium:selenium-remote-driver:jar:sources", - "org.seleniumhq.selenium:selenium-support", - "org.seleniumhq.selenium:selenium-support:jar:sources", "org.slf4j:slf4j-api", "org.slf4j:slf4j-api:jar:sources", "org.slf4j:slf4j-jdk14", diff --git a/java/test/org/openqa/selenium/AlertsTest.java b/java/test/org/openqa/selenium/AlertsTest.java index 5df0fde2df366..2bcf8caba55db 100644 --- a/java/test/org/openqa/selenium/AlertsTest.java +++ b/java/test/org/openqa/selenium/AlertsTest.java @@ -25,7 +25,6 @@ import static org.openqa.selenium.testing.drivers.Browser.CHROME; import static org.openqa.selenium.testing.drivers.Browser.EDGE; import static org.openqa.selenium.testing.drivers.Browser.FIREFOX; -import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT; import static org.openqa.selenium.testing.drivers.Browser.SAFARI; import java.util.Set; @@ -434,7 +433,6 @@ public void testShouldNotHandleAlertInAnotherWindow() { } @Test - @Ignore(value = HTMLUNIT, reason = "https://github.com/SeleniumHQ/htmlunit-driver/issues/57") @Ignore( value = FIREFOX, reason = "Per spec, an error data dictionary with text value is optional") diff --git a/java/test/org/openqa/selenium/ClearTest.java b/java/test/org/openqa/selenium/ClearTest.java index 8e6f779b90639..651c2a086ca6b 100644 --- a/java/test/org/openqa/selenium/ClearTest.java +++ b/java/test/org/openqa/selenium/ClearTest.java @@ -19,7 +19,6 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatExceptionOfType; -import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT; import static org.openqa.selenium.testing.drivers.Browser.IE; import org.junit.jupiter.api.Test; @@ -122,20 +121,17 @@ void shouldBeAbleToClearUrlInput() { } @Test - @NotYetImplemented(HTMLUNIT) public void shouldBeAbleToClearRangeInput() { shouldBeAbleToClearInput(By.name("range_input"), "42", "50"); } @Test - @NotYetImplemented(HTMLUNIT) @NotYetImplemented(IE) public void shouldBeAbleToClearColorInput() { shouldBeAbleToClearInput(By.name("color_input"), "#00ffff", "#000000"); } @Test - @NotYetImplemented(HTMLUNIT) public void shouldBeAbleToClearDateInput() { shouldBeAbleToClearInput(By.name("date_input"), "2017-11-22"); } @@ -146,25 +142,21 @@ void shouldBeAbleToClearDatetimeInput() { } @Test - @NotYetImplemented(HTMLUNIT) public void shouldBeAbleToClearDatetimeLocalInput() { shouldBeAbleToClearInput(By.name("datetime_local_input"), "2017-11-22T11:22"); } @Test - @NotYetImplemented(HTMLUNIT) public void shouldBeAbleToClearTimeInput() { shouldBeAbleToClearInput(By.name("time_input"), "11:22"); } @Test - @NotYetImplemented(HTMLUNIT) public void shouldBeAbleToClearMonthInput() { shouldBeAbleToClearInput(By.name("month_input"), "2017-11"); } @Test - @NotYetImplemented(HTMLUNIT) public void shouldBeAbleToClearWeekInput() { shouldBeAbleToClearInput(By.name("week_input"), "2017-W47"); } diff --git a/java/test/org/openqa/selenium/ClickScrollingTest.java b/java/test/org/openqa/selenium/ClickScrollingTest.java index 2bb0a55c64a19..7372d2b02e891 100644 --- a/java/test/org/openqa/selenium/ClickScrollingTest.java +++ b/java/test/org/openqa/selenium/ClickScrollingTest.java @@ -21,7 +21,6 @@ import static org.openqa.selenium.support.ui.ExpectedConditions.presenceOfElementLocated; import static org.openqa.selenium.support.ui.ExpectedConditions.titleIs; import static org.openqa.selenium.testing.drivers.Browser.FIREFOX; -import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT; import static org.openqa.selenium.testing.drivers.Browser.IE; import static org.openqa.selenium.testing.drivers.Browser.SAFARI; @@ -31,7 +30,6 @@ import org.openqa.selenium.testing.NotYetImplemented; import org.openqa.selenium.testing.SwitchToTopAfterTest; -@Ignore(value = HTMLUNIT, reason = "Scrolling requires rendering") class ClickScrollingTest extends JupiterTestBase { @Test diff --git a/java/test/org/openqa/selenium/CorrectEventFiringTest.java b/java/test/org/openqa/selenium/CorrectEventFiringTest.java index ffa8b2e38357a..751bf1076852c 100644 --- a/java/test/org/openqa/selenium/CorrectEventFiringTest.java +++ b/java/test/org/openqa/selenium/CorrectEventFiringTest.java @@ -26,7 +26,6 @@ import static org.openqa.selenium.WaitingConditions.elementValueToEqual; import static org.openqa.selenium.support.ui.ExpectedConditions.visibilityOfElementLocated; import static org.openqa.selenium.testing.drivers.Browser.FIREFOX; -import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT; import static org.openqa.selenium.testing.drivers.Browser.IE; import static org.openqa.selenium.testing.drivers.Browser.SAFARI; @@ -420,7 +419,6 @@ public void testSendingKeysToAFocusedElementShouldNotBlurThatElement() { } @Test - @NotYetImplemented(HTMLUNIT) @NotYetImplemented(IE) @NotYetImplemented(SAFARI) public void testClickingAnUnfocusableChildShouldNotBlurTheParent() { @@ -511,7 +509,6 @@ void testClickEventsShouldBubble() { } @Test - @Ignore(HTMLUNIT) public void testClickOverlappingElements() { driver.get(appServer.whereIs("click_tests/overlapping_elements.html")); WebElement element = driver.findElement(By.id("under")); @@ -520,7 +517,6 @@ public void testClickOverlappingElements() { } @Test - @Ignore(HTMLUNIT) @NotYetImplemented(SAFARI) public void testClickAnElementThatDisappear() { driver.get(appServer.whereIs("click_tests/disappearing_element.html")); diff --git a/java/test/org/openqa/selenium/ElementAttributeTest.java b/java/test/org/openqa/selenium/ElementAttributeTest.java index 63d32c07e0a17..2ab3813f147ee 100644 --- a/java/test/org/openqa/selenium/ElementAttributeTest.java +++ b/java/test/org/openqa/selenium/ElementAttributeTest.java @@ -23,7 +23,6 @@ import static org.openqa.selenium.testing.drivers.Browser.CHROME; import static org.openqa.selenium.testing.drivers.Browser.EDGE; import static org.openqa.selenium.testing.drivers.Browser.FIREFOX; -import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT; import static org.openqa.selenium.testing.drivers.Browser.IE; import static org.openqa.selenium.testing.drivers.Browser.SAFARI; @@ -409,7 +408,6 @@ void shouldTreatContenteditableAsEnumeratedButNotBoolean() { @NotYetImplemented(CHROME) @NotYetImplemented(EDGE) @NotYetImplemented(FIREFOX) - @NotYetImplemented(HTMLUNIT) @NotYetImplemented(SAFARI) public void shouldTreatDraggableAsEnumeratedButNotBoolean() { checkEnumeratedAttribute("draggable", "true", "false", "yes", "no", "", "blabla"); diff --git a/java/test/org/openqa/selenium/ElementDomAttributeTest.java b/java/test/org/openqa/selenium/ElementDomAttributeTest.java index f030c8286151f..bc5134ef45a86 100644 --- a/java/test/org/openqa/selenium/ElementDomAttributeTest.java +++ b/java/test/org/openqa/selenium/ElementDomAttributeTest.java @@ -23,7 +23,6 @@ import static org.openqa.selenium.testing.drivers.Browser.CHROME; import static org.openqa.selenium.testing.drivers.Browser.EDGE; import static org.openqa.selenium.testing.drivers.Browser.FIREFOX; -import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT; import static org.openqa.selenium.testing.drivers.Browser.IE; import static org.openqa.selenium.testing.drivers.Browser.SAFARI; @@ -351,7 +350,6 @@ void shouldTreatContenteditableAsEnumeratedButNotBoolean() { @Test @NotYetImplemented(IE) - @NotYetImplemented(HTMLUNIT) @NotYetImplemented(SAFARI) public void shouldTreatDraggableAsEnumeratedButNotBoolean() { checkEnumeratedAttribute("draggable", "true", "false", "yes", "no", "", "blabla"); diff --git a/java/test/org/openqa/selenium/ElementFindingTest.java b/java/test/org/openqa/selenium/ElementFindingTest.java index 7b32887b44db4..e41878802fdf9 100644 --- a/java/test/org/openqa/selenium/ElementFindingTest.java +++ b/java/test/org/openqa/selenium/ElementFindingTest.java @@ -21,7 +21,6 @@ import static org.assertj.core.api.Assertions.assertThatExceptionOfType; import static org.openqa.selenium.testing.drivers.Browser.CHROME; import static org.openqa.selenium.testing.drivers.Browser.FIREFOX; -import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT; import static org.openqa.selenium.testing.drivers.Browser.IE; import static org.openqa.selenium.testing.drivers.Browser.SAFARI; @@ -107,7 +106,6 @@ void testFindingASingleElementByEmptyIdShouldThrow() { } @Test - @NotYetImplemented(HTMLUNIT) public void testFindingMultipleElementsByEmptyIdShouldThrow() { driver.get(pages.formPage); assertThatExceptionOfType(InvalidSelectorException.class) @@ -345,7 +343,6 @@ void testFindingMultipleElementsByCompoundClassNameShouldThrow() { } @Test - @NotYetImplemented(HTMLUNIT) public void testShouldBeAbleToFindASingleElementByAWeirdLookingClassName() { driver.get(pages.xhtmlTestPage); WebElement element = driver.findElement(By.className("cls-!@#$%^&*")); @@ -353,7 +350,6 @@ public void testShouldBeAbleToFindASingleElementByAWeirdLookingClassName() { } @Test - @NotYetImplemented(HTMLUNIT) public void testShouldBeAbleToFindMultipleElementsByAWeirdLookingClassName() { driver.get(pages.xhtmlTestPage); List elements = driver.findElements(By.className("cls-!@#$%^&*")); diff --git a/java/test/org/openqa/selenium/ExecutingAsyncJavascriptTest.java b/java/test/org/openqa/selenium/ExecutingAsyncJavascriptTest.java index b2e6cfd53cfbe..a8a0052adc78b 100644 --- a/java/test/org/openqa/selenium/ExecutingAsyncJavascriptTest.java +++ b/java/test/org/openqa/selenium/ExecutingAsyncJavascriptTest.java @@ -24,7 +24,6 @@ import static org.openqa.selenium.testing.drivers.Browser.CHROME; import static org.openqa.selenium.testing.drivers.Browser.EDGE; import static org.openqa.selenium.testing.drivers.Browser.FIREFOX; -import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT; import static org.openqa.selenium.testing.drivers.Browser.IE; import static org.openqa.selenium.testing.drivers.Browser.SAFARI; @@ -231,7 +230,6 @@ void shouldNotTimeoutWithMultipleCallsTheFirstOneBeingSynchronous() { @Ignore(IE) @NotYetImplemented(SAFARI) @Ignore(FIREFOX) - @NotYetImplemented(HTMLUNIT) public void shouldCatchErrorsWithMessageAndStacktraceWhenExecutingInitialScript() { driver.get(pages.ajaxyPage); String js = diff --git a/java/test/org/openqa/selenium/ExecutingJavascriptTest.java b/java/test/org/openqa/selenium/ExecutingJavascriptTest.java index 0e55c93a43b6a..1b7b9dda62dc6 100644 --- a/java/test/org/openqa/selenium/ExecutingJavascriptTest.java +++ b/java/test/org/openqa/selenium/ExecutingJavascriptTest.java @@ -27,7 +27,6 @@ import static org.openqa.selenium.testing.drivers.Browser.CHROME; import static org.openqa.selenium.testing.drivers.Browser.EDGE; import static org.openqa.selenium.testing.drivers.Browser.FIREFOX; -import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT; import static org.openqa.selenium.testing.drivers.Browser.IE; import static org.openqa.selenium.testing.drivers.Browser.SAFARI; @@ -251,7 +250,6 @@ void testShouldThrowAnExceptionWhenTheJavascriptIsBad() { @Ignore(IE) @NotYetImplemented(SAFARI) @Ignore(FIREFOX) - @NotYetImplemented(HTMLUNIT) public void testShouldThrowAnExceptionWithMessageAndStacktraceWhenTheJavascriptIsBad() { driver.get(pages.xhtmlTestPage); @@ -430,9 +428,6 @@ void testShouldBeAbleToExecuteScriptAndReturnElementsList() { @NeedsFreshDriver @Test - @NotYetImplemented( - value = HTMLUNIT, - reason = "HtmlUnit: can't execute JavaScript before a page is loaded") @Ignore(SAFARI) public void testShouldBeAbleToExecuteScriptOnNoPage() { String text = (String) executeScript("return 'test';"); @@ -525,7 +520,6 @@ public void shouldReturnDocumentElementIfDocumentIsReturned() { @Test @Timeout(10) @Ignore(value = IE, reason = "returns WebElement") - @Ignore(HTMLUNIT) public void shouldHandleObjectThatThatHaveToJSONMethod() { driver.get(pages.simpleTestPage); @@ -536,7 +530,6 @@ public void shouldHandleObjectThatThatHaveToJSONMethod() { @Test @Timeout(10) - @Ignore(HTMLUNIT) public void shouldHandleRecursiveStructures() { driver.get(pages.simpleTestPage); diff --git a/java/test/org/openqa/selenium/FrameSwitchingTest.java b/java/test/org/openqa/selenium/FrameSwitchingTest.java index 37da10f44911a..04f91d8450184 100644 --- a/java/test/org/openqa/selenium/FrameSwitchingTest.java +++ b/java/test/org/openqa/selenium/FrameSwitchingTest.java @@ -26,7 +26,6 @@ import static org.openqa.selenium.support.ui.ExpectedConditions.titleIs; import static org.openqa.selenium.testing.drivers.Browser.CHROME; import static org.openqa.selenium.testing.drivers.Browser.EDGE; -import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT; import static org.openqa.selenium.testing.drivers.Browser.IE; import static org.openqa.selenium.testing.drivers.Browser.SAFARI; @@ -454,7 +453,6 @@ public void testShouldBeAbleToSwitchToTheTopIfTheFrameIsDeletedFromUnderUsWithWe @NotYetImplemented(value = CHROME, reason = "Throws NoSuchElementException") @NotYetImplemented(value = EDGE, reason = "Throws NoSuchElementException") @Ignore(IE) - @NotYetImplemented(HTMLUNIT) @Ignore(SAFARI) public void testShouldNotBeAbleToDoAnythingTheFrameIsDeletedFromUnderUs() { driver.get(appServer.whereIs("frame_switching_tests/deletingFrame.html")); diff --git a/java/test/org/openqa/selenium/HistoryNavigationTest.java b/java/test/org/openqa/selenium/HistoryNavigationTest.java index 196d1a220be09..1c6e213dd161a 100644 --- a/java/test/org/openqa/selenium/HistoryNavigationTest.java +++ b/java/test/org/openqa/selenium/HistoryNavigationTest.java @@ -22,22 +22,17 @@ import static org.openqa.selenium.support.ui.ExpectedConditions.not; import static org.openqa.selenium.support.ui.ExpectedConditions.titleIs; import static org.openqa.selenium.support.ui.ExpectedConditions.visibilityOfElementLocated; -import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT; import static org.openqa.selenium.testing.drivers.Browser.SAFARI; import org.junit.jupiter.api.Test; import org.openqa.selenium.testing.Ignore; import org.openqa.selenium.testing.JupiterTestBase; import org.openqa.selenium.testing.NeedsFreshDriver; -import org.openqa.selenium.testing.NotYetImplemented; public class HistoryNavigationTest extends JupiterTestBase { @NeedsFreshDriver @Test - @NotYetImplemented( - value = HTMLUNIT, - reason = "HtmlUnit: can't execute JavaScript before a page is loaded") @Ignore(value = SAFARI, reason = "Hanging") public void testShouldDoNothingIfThereIsNothingToGoBackTo() { ((JavascriptExecutor) driver) diff --git a/java/test/org/openqa/selenium/PageLoadTimeOutTest.java b/java/test/org/openqa/selenium/PageLoadTimeOutTest.java index a97f100ef91dc..3b80d0c0b8e8c 100644 --- a/java/test/org/openqa/selenium/PageLoadTimeOutTest.java +++ b/java/test/org/openqa/selenium/PageLoadTimeOutTest.java @@ -24,7 +24,6 @@ import static org.openqa.selenium.support.ui.ExpectedConditions.visibilityOfElementLocated; import static org.openqa.selenium.testing.drivers.Browser.CHROME; import static org.openqa.selenium.testing.drivers.Browser.EDGE; -import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT; import static org.openqa.selenium.testing.drivers.Browser.SAFARI; import java.time.Duration; @@ -70,7 +69,6 @@ void testShouldTimeoutIfAPageTakesTooLongToLoad() { } @Test - @Ignore(HTMLUNIT) @Ignore(value = SAFARI, reason = "Flaky") public void testShouldTimeoutIfAPageTakesTooLongToLoadAfterClick() { driver.manage().timeouts().pageLoadTimeout(Duration.ofSeconds(2)); @@ -136,7 +134,6 @@ public void testShouldTimeoutIfAPageTakesTooLongToRefresh() { @NotYetImplemented(CHROME) @NotYetImplemented(EDGE) @NotYetImplemented(value = SAFARI) - @NotYetImplemented(HTMLUNIT) public void testShouldNotStopLoadingPageAfterTimeout() { try { testPageLoadTimeoutIsEnforced(1); diff --git a/java/test/org/openqa/selenium/PositionAndSizeTest.java b/java/test/org/openqa/selenium/PositionAndSizeTest.java index 987923e9e70c1..9121c98d21be9 100644 --- a/java/test/org/openqa/selenium/PositionAndSizeTest.java +++ b/java/test/org/openqa/selenium/PositionAndSizeTest.java @@ -21,7 +21,6 @@ import static org.openqa.selenium.testing.drivers.Browser.CHROME; import static org.openqa.selenium.testing.drivers.Browser.EDGE; import static org.openqa.selenium.testing.drivers.Browser.FIREFOX; -import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT; import static org.openqa.selenium.testing.drivers.Browser.IE; import static org.openqa.selenium.testing.drivers.Browser.SAFARI; @@ -32,7 +31,6 @@ import org.openqa.selenium.testing.NotYetImplemented; import org.openqa.selenium.testing.SwitchToTopAfterTest; -@Ignore(value = HTMLUNIT, reason = "Getting coordinates requires rendering, others: not tested") class PositionAndSizeTest extends JupiterTestBase { @Test diff --git a/java/test/org/openqa/selenium/SelectElementHandlingTest.java b/java/test/org/openqa/selenium/SelectElementHandlingTest.java index 37bc4c0c94d8d..9eca53a2510e8 100644 --- a/java/test/org/openqa/selenium/SelectElementHandlingTest.java +++ b/java/test/org/openqa/selenium/SelectElementHandlingTest.java @@ -18,12 +18,10 @@ package org.openqa.selenium; import static org.assertj.core.api.Assertions.assertThat; -import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT; import java.util.List; import org.junit.jupiter.api.Test; import org.openqa.selenium.testing.JupiterTestBase; -import org.openqa.selenium.testing.NotYetImplemented; class SelectElementHandlingTest extends JupiterTestBase { @@ -135,7 +133,6 @@ void testCannotSetDisabledOption() { } @Test - @NotYetImplemented(HTMLUNIT) public void testCanSetHiddenOption() { driver.get(pages.selectPage); WebElement element = driver.findElement(By.cssSelector("#visibility .hidden")); @@ -144,7 +141,6 @@ public void testCanSetHiddenOption() { } @Test - @NotYetImplemented(HTMLUNIT) public void testCanSetInvisibleOption() { driver.get(pages.selectPage); WebElement element = driver.findElement(By.cssSelector("#visibility .invisible")); diff --git a/java/test/org/openqa/selenium/SvgDocumentTest.java b/java/test/org/openqa/selenium/SvgDocumentTest.java index 8f9911c1aa7bc..2a8a9d60b855c 100644 --- a/java/test/org/openqa/selenium/SvgDocumentTest.java +++ b/java/test/org/openqa/selenium/SvgDocumentTest.java @@ -18,18 +18,15 @@ package org.openqa.selenium; import static org.assertj.core.api.Assertions.assertThat; -import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT; import static org.openqa.selenium.testing.drivers.Browser.SAFARI; import org.junit.jupiter.api.Test; -import org.openqa.selenium.testing.Ignore; import org.openqa.selenium.testing.JupiterTestBase; import org.openqa.selenium.testing.NotYetImplemented; class SvgDocumentTest extends JupiterTestBase { @Test - @Ignore(value = HTMLUNIT, reason = "test should enable JavaScript") @NotYetImplemented(SAFARI) public void testClickOnSvgElement() { driver.get(pages.svgTestPage); @@ -41,7 +38,6 @@ public void testClickOnSvgElement() { } @Test - @Ignore(value = HTMLUNIT, reason = "test should enable JavaScript") public void testExecuteScriptInSvgDocument() { driver.get(pages.svgTestPage); WebElement rect = driver.findElement(By.id("rect")); diff --git a/java/test/org/openqa/selenium/SvgElementTest.java b/java/test/org/openqa/selenium/SvgElementTest.java index 56eba0115903a..a54689d87ed59 100644 --- a/java/test/org/openqa/selenium/SvgElementTest.java +++ b/java/test/org/openqa/selenium/SvgElementTest.java @@ -20,19 +20,16 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.openqa.selenium.WaitingConditions.elementTextToEqual; import static org.openqa.selenium.testing.drivers.Browser.FIREFOX; -import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT; import static org.openqa.selenium.testing.drivers.Browser.SAFARI; import java.util.List; import org.junit.jupiter.api.Test; -import org.openqa.selenium.testing.Ignore; import org.openqa.selenium.testing.JupiterTestBase; import org.openqa.selenium.testing.NotYetImplemented; class SvgElementTest extends JupiterTestBase { @Test - @Ignore(value = HTMLUNIT, reason = "test should enable JavaScript") @NotYetImplemented( value = FIREFOX, reason = "https://bugzilla.mozilla.org/show_bug.cgi?id=1428780") @@ -68,7 +65,6 @@ private static WebElement findAppleElement(List textElements) { } @Test - @Ignore(value = HTMLUNIT, reason = "test should enable JavaScript") void testShouldClickOnGraphTextElements() { driver.get(pages.svgPage); WebElement svg = driver.findElement(By.cssSelector("svg")); diff --git a/java/test/org/openqa/selenium/TextHandlingTest.java b/java/test/org/openqa/selenium/TextHandlingTest.java index a03b9ecced339..e43d3b501f343 100644 --- a/java/test/org/openqa/selenium/TextHandlingTest.java +++ b/java/test/org/openqa/selenium/TextHandlingTest.java @@ -19,7 +19,6 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.openqa.selenium.testing.drivers.Browser.ALL; -import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT; import static org.openqa.selenium.testing.drivers.Browser.IE; import static org.openqa.selenium.testing.drivers.Browser.SAFARI; @@ -377,7 +376,6 @@ void testShouldGetTextWhichIsAValidComplexJSONObject() { } @Test - @NotYetImplemented(HTMLUNIT) @NotYetImplemented(SAFARI) public void testShouldNotReturnLtrMarks() { driver.get(pages.unicodeLtrPage); @@ -418,7 +416,6 @@ void canHandleTextThatLooksLikeANumber() { } @Test - @NotYetImplemented(HTMLUNIT) @NotYetImplemented(value = SAFARI, reason = "getText does not normalize spaces") public void canHandleTextTransformProperty() { driver.get(pages.simpleTestPage); diff --git a/java/test/org/openqa/selenium/UnexpectedAlertBehaviorTest.java b/java/test/org/openqa/selenium/UnexpectedAlertBehaviorTest.java index 3fc087d254f0a..2126d99aa3415 100644 --- a/java/test/org/openqa/selenium/UnexpectedAlertBehaviorTest.java +++ b/java/test/org/openqa/selenium/UnexpectedAlertBehaviorTest.java @@ -23,7 +23,6 @@ import static org.openqa.selenium.remote.CapabilityType.UNHANDLED_PROMPT_BEHAVIOUR; import static org.openqa.selenium.testing.drivers.Browser.CHROME; import static org.openqa.selenium.testing.drivers.Browser.EDGE; -import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT; import static org.openqa.selenium.testing.drivers.Browser.SAFARI; import java.time.Duration; @@ -40,7 +39,6 @@ class UnexpectedAlertBehaviorTest extends JupiterTestBase { @Test @Ignore(value = CHROME, reason = "Legacy behaviour, not W3C conformance") @Ignore(value = EDGE, reason = "Legacy behaviour, not W3C conformant") - @Ignore(value = HTMLUNIT, reason = "Legacy behaviour, not W3C conformant") @NoDriverBeforeTest public void canAcceptUnhandledAlert() { runScenarioWithUnhandledAlert( @@ -50,7 +48,6 @@ public void canAcceptUnhandledAlert() { @Test @Ignore(value = CHROME, reason = "Legacy behaviour, not W3C conformant") @Ignore(value = EDGE, reason = "Legacy behaviour, not W3C conformant") - @Ignore(value = HTMLUNIT, reason = "Legacy behaviour, not W3C conformant") @NoDriverBeforeTest public void canSilentlyAcceptUnhandledAlert() { runScenarioWithUnhandledAlert(UnexpectedAlertBehaviour.ACCEPT, "This is a default value", true); @@ -59,7 +56,6 @@ public void canSilentlyAcceptUnhandledAlert() { @Test @Ignore(value = CHROME, reason = "Unstable Chrome behavior") @Ignore(value = EDGE, reason = "Unstable Chrome behavior") - @Ignore(value = HTMLUNIT, reason = "Legacy behaviour, not W3C conformant") @NoDriverBeforeTest public void canDismissUnhandledAlert() { runScenarioWithUnhandledAlert(UnexpectedAlertBehaviour.DISMISS_AND_NOTIFY, "null", false); @@ -68,7 +64,6 @@ public void canDismissUnhandledAlert() { @Test @Ignore(value = CHROME, reason = "Legacy behaviour, not W3C conformant") @Ignore(value = EDGE, reason = "Legacy behaviour, not W3C conformant") - @Ignore(value = HTMLUNIT, reason = "Legacy behaviour, not W3C conformant") @NoDriverBeforeTest public void canSilentlyDismissUnhandledAlert() { runScenarioWithUnhandledAlert(UnexpectedAlertBehaviour.DISMISS, "null", true); diff --git a/java/test/org/openqa/selenium/UploadTest.java b/java/test/org/openqa/selenium/UploadTest.java index e1d50b6997904..ae67b01aa3613 100644 --- a/java/test/org/openqa/selenium/UploadTest.java +++ b/java/test/org/openqa/selenium/UploadTest.java @@ -24,7 +24,6 @@ import static org.openqa.selenium.WaitingConditions.elementTextToEqual; import static org.openqa.selenium.support.ui.ExpectedConditions.not; import static org.openqa.selenium.support.ui.ExpectedConditions.visibilityOf; -import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT; import static org.openqa.selenium.testing.drivers.Browser.SAFARI; import java.io.File; @@ -121,7 +120,6 @@ void testCleanFileInput() { } @Test - @Ignore(HTMLUNIT) public void testClickFileInput() { driver.get(pages.uploadPage); WebElement element = driver.findElement(By.id("upload")); @@ -147,7 +145,6 @@ public void testUploadingWithHiddenFileInput() { @Test @Ignore(value = SAFARI, reason = "Hangs forever in sendKeys") - @Ignore(HTMLUNIT) @NeedsFreshDriver public void testUploadingWithInvisibleFileInput() { driver.get(appServer.whereIs("upload_invisible.html")); @@ -165,7 +162,6 @@ public void testUploadingWithInvisibleFileInput() { } @Test - @Ignore(HTMLUNIT) @NoDriverBeforeTest @NoDriverAfterTest public void testUploadingWithInvisibleFileInputWhenStrictFileInteractabilityIsOn() { diff --git a/java/test/org/openqa/selenium/VisibilityTest.java b/java/test/org/openqa/selenium/VisibilityTest.java index 0e9969cbca830..7733b6dcda25d 100644 --- a/java/test/org/openqa/selenium/VisibilityTest.java +++ b/java/test/org/openqa/selenium/VisibilityTest.java @@ -23,7 +23,6 @@ import static org.openqa.selenium.Platform.ANDROID; import static org.openqa.selenium.support.ui.ExpectedConditions.not; import static org.openqa.selenium.support.ui.ExpectedConditions.visibilityOf; -import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT; import static org.openqa.selenium.testing.drivers.Browser.SAFARI; import java.util.List; @@ -130,7 +129,6 @@ void parentNodeVisibleWhenAllChildrenAreAbsolutelyPositionedAndOverflowIsHidden( } @Test - @NotYetImplemented(HTMLUNIT) public void testElementHiddenByOverflowXIsNotVisible() { String[] pages = new String[] { @@ -148,7 +146,6 @@ public void testElementHiddenByOverflowXIsNotVisible() { } @Test - @NotYetImplemented(HTMLUNIT) public void testElementHiddenByOverflowYIsNotVisible() { String[] pages = new String[] { diff --git a/java/test/org/openqa/selenium/WindowSwitchingTest.java b/java/test/org/openqa/selenium/WindowSwitchingTest.java index 50f0f3b1d909f..757bd2c369c61 100644 --- a/java/test/org/openqa/selenium/WindowSwitchingTest.java +++ b/java/test/org/openqa/selenium/WindowSwitchingTest.java @@ -26,7 +26,6 @@ import static org.openqa.selenium.testing.TestUtilities.isInternetExplorer; import static org.openqa.selenium.testing.drivers.Browser.CHROME; import static org.openqa.selenium.testing.drivers.Browser.FIREFOX; -import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT; import static org.openqa.selenium.testing.drivers.Browser.IE; import static org.openqa.selenium.testing.drivers.Browser.SAFARI; @@ -338,7 +337,6 @@ public void testShouldFocusOnTheTopMostFrameAfterSwitchingToAWindow() { @NoDriverAfterTest(failedOnly = true) @Test - @NotYetImplemented(HTMLUNIT) public void canOpenANewWindow() { driver.get(pages.xhtmlTestPage); diff --git a/java/test/org/openqa/selenium/interactions/CombinedInputActionsTest.java b/java/test/org/openqa/selenium/interactions/CombinedInputActionsTest.java index d4e0e7d868680..d2c985681bda5 100644 --- a/java/test/org/openqa/selenium/interactions/CombinedInputActionsTest.java +++ b/java/test/org/openqa/selenium/interactions/CombinedInputActionsTest.java @@ -28,7 +28,6 @@ import static org.openqa.selenium.testing.TestUtilities.isInternetExplorer; import static org.openqa.selenium.testing.drivers.Browser.CHROME; import static org.openqa.selenium.testing.drivers.Browser.FIREFOX; -import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT; import static org.openqa.selenium.testing.drivers.Browser.IE; import static org.openqa.selenium.testing.drivers.Browser.SAFARI; @@ -258,7 +257,6 @@ void testCanClickOnLinks() { } @Test - @NotYetImplemented(HTMLUNIT) public void testCanClickOnLinksWithAnOffset() { driver.get(pages.clicksPage); @@ -271,7 +269,6 @@ public void testCanClickOnLinksWithAnOffset() { } @Test - @NotYetImplemented(HTMLUNIT) public void testClickAfterMoveToAnElementWithAnOffsetShouldUseLastMousePosition() { driver.get(pages.clickEventPage); @@ -311,7 +308,6 @@ private boolean fuzzyPositionMatching(int expectedX, int expectedY, int actualX, * driver keeps the wrong state, mouse movement will end up at the wrong coordinates. */ @Test - @NotYetImplemented(HTMLUNIT) public void testMouseMovementWorksWhenNavigatingToAnotherPage() { navigateToClicksPageAndClickLink(); diff --git a/java/test/org/openqa/selenium/interactions/DefaultKeyboardTest.java b/java/test/org/openqa/selenium/interactions/DefaultKeyboardTest.java index 36bacbdd152c3..6d0703eb0ea0b 100644 --- a/java/test/org/openqa/selenium/interactions/DefaultKeyboardTest.java +++ b/java/test/org/openqa/selenium/interactions/DefaultKeyboardTest.java @@ -22,7 +22,6 @@ import static org.junit.jupiter.api.Assumptions.assumeFalse; import static org.openqa.selenium.testing.TestUtilities.getEffectivePlatform; import static org.openqa.selenium.testing.drivers.Browser.FIREFOX; -import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT; import static org.openqa.selenium.testing.drivers.Browser.IE; import static org.openqa.selenium.testing.drivers.Browser.SAFARI; @@ -160,7 +159,6 @@ public void testBasicKeyboardInputOnActiveElement() { } @Test - @NotYetImplemented(HTMLUNIT) public void testThrowsIllegalArgumentExceptionWithNoParameters() { driver.get(pages.javascriptPage); assertThatExceptionOfType(IllegalArgumentException.class) @@ -168,7 +166,6 @@ public void testThrowsIllegalArgumentExceptionWithNoParameters() { } @Test - @NotYetImplemented(HTMLUNIT) public void testThrowsIllegalArgumentExceptionWithNullParameter() { driver.get(pages.javascriptPage); assertThatExceptionOfType(IllegalArgumentException.class) @@ -176,7 +173,6 @@ public void testThrowsIllegalArgumentExceptionWithNullParameter() { } @Test - @NotYetImplemented(HTMLUNIT) public void testThrowsIllegalArgumentExceptionWithNullInParameters() { driver.get(pages.javascriptPage); assertThatExceptionOfType(IllegalArgumentException.class) @@ -184,7 +180,6 @@ public void testThrowsIllegalArgumentExceptionWithNullInParameters() { } @Test - @NotYetImplemented(HTMLUNIT) public void testThrowsIllegalArgumentExceptionWithCharSequenceThatContainsNull() { driver.get(pages.javascriptPage); assertThatExceptionOfType(IllegalArgumentException.class) @@ -192,7 +187,6 @@ public void testThrowsIllegalArgumentExceptionWithCharSequenceThatContainsNull() } @Test - @NotYetImplemented(HTMLUNIT) public void testThrowsIllegalArgumentExceptionWithCharSequenceThatContainsNullOnly() { driver.get(pages.javascriptPage); assertThatExceptionOfType(IllegalArgumentException.class) diff --git a/java/test/org/openqa/selenium/interactions/DefaultMouseTest.java b/java/test/org/openqa/selenium/interactions/DefaultMouseTest.java index a932f583f8bf9..e03bd370f24ad 100644 --- a/java/test/org/openqa/selenium/interactions/DefaultMouseTest.java +++ b/java/test/org/openqa/selenium/interactions/DefaultMouseTest.java @@ -28,7 +28,6 @@ import static org.openqa.selenium.testing.drivers.Browser.CHROME; import static org.openqa.selenium.testing.drivers.Browser.EDGE; import static org.openqa.selenium.testing.drivers.Browser.FIREFOX; -import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT; import static org.openqa.selenium.testing.drivers.Browser.IE; import static org.openqa.selenium.testing.drivers.Browser.SAFARI; @@ -98,12 +97,10 @@ public void testDraggingElementWithMouseMovesItToAnotherList() { // This test is very similar to testDraggingElementWithMouse. The only // difference is that this test also verifies the correct events were fired. @Test - @NotYetImplemented(HTMLUNIT) @NotYetImplemented(SAFARI) public void testDraggingElementWithMouseFiresEvents() { performDragAndDropWithMouse(); WebElement dragReporter = driver.findElement(By.id("dragging_reports")); - // This is failing under HtmlUnit. A bug was filed. String text = dragReporter.getText(); assertThat(text).matches("Nothing happened. (?:DragOut *)+DropIn RightItem 3"); } @@ -226,7 +223,6 @@ void testCannotMoveToANullLocator() { } @Test - @Ignore(value = HTMLUNIT, reason = "test should enable JavaScript") @NotYetImplemented(SAFARI) public void testMovingPastViewPortThrowsException() { assertThatExceptionOfType(MoveTargetOutOfBoundsException.class) @@ -286,7 +282,6 @@ public void testHoverPersists() throws Exception { } @Test - @NotYetImplemented(HTMLUNIT) public void testMovingMouseByRelativeOffset() { driver.get(pages.mouseTrackerPage); @@ -303,7 +298,6 @@ public void testMovingMouseByRelativeOffset() { } @Test - @NotYetImplemented(HTMLUNIT) public void testMovingMouseToRelativeElementOffset() { driver.get(pages.mouseTrackerPage); @@ -319,7 +313,6 @@ public void testMovingMouseToRelativeElementOffset() { } @Test - @NotYetImplemented(HTMLUNIT) public void testMovingMouseToRelativeZeroElementOffset() { driver.get(pages.mouseTrackerPage); @@ -334,7 +327,6 @@ public void testMovingMouseToRelativeZeroElementOffset() { @NeedsFreshDriver({IE, CHROME, FIREFOX, EDGE}) @Test - @NotYetImplemented(HTMLUNIT) @NotYetImplemented(SAFARI) public void testMoveRelativeToBody() { try { @@ -352,7 +344,6 @@ public void testMoveRelativeToBody() { @Test @Ignore(value = FIREFOX, issue = "https://github.com/mozilla/geckodriver/issues/789") - @NotYetImplemented(HTMLUNIT) @NotYetImplemented(SAFARI) public void testMoveMouseByOffsetOverAndOutOfAnElement() { driver.get(pages.mouseOverPage); @@ -391,7 +382,6 @@ public void testMoveMouseByOffsetOverAndOutOfAnElement() { @Test @Ignore(value = FIREFOX, issue = "https://github.com/mozilla/geckodriver/issues/789") - @NotYetImplemented(HTMLUNIT) @NotYetImplemented(SAFARI) public void testCanMoveOverAndOutOfAnElement() { driver.get(pages.mouseOverPage); diff --git a/java/test/org/openqa/selenium/interactions/DragAndDropTest.java b/java/test/org/openqa/selenium/interactions/DragAndDropTest.java index b154f18361610..b61d4aa5ef3db 100644 --- a/java/test/org/openqa/selenium/interactions/DragAndDropTest.java +++ b/java/test/org/openqa/selenium/interactions/DragAndDropTest.java @@ -22,7 +22,6 @@ import static org.openqa.selenium.WaitingConditions.elementLocationToBe; import static org.openqa.selenium.testing.drivers.Browser.CHROME; import static org.openqa.selenium.testing.drivers.Browser.FIREFOX; -import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT; import static org.openqa.selenium.testing.drivers.Browser.IE; import static org.openqa.selenium.testing.drivers.Browser.SAFARI; @@ -38,7 +37,6 @@ import org.openqa.selenium.testing.NotYetImplemented; import org.openqa.selenium.testing.SwitchToTopAfterTest; -@Ignore(value = HTMLUNIT, reason = "Advanced mouse actions only implemented in rendered browsers") class DragAndDropTest extends JupiterTestBase { private static void sleep(int ms) { diff --git a/java/test/org/openqa/selenium/interactions/PenPointerTest.java b/java/test/org/openqa/selenium/interactions/PenPointerTest.java index 0a7311d655981..ad26947242920 100644 --- a/java/test/org/openqa/selenium/interactions/PenPointerTest.java +++ b/java/test/org/openqa/selenium/interactions/PenPointerTest.java @@ -28,7 +28,6 @@ import static org.openqa.selenium.testing.drivers.Browser.CHROME; import static org.openqa.selenium.testing.drivers.Browser.EDGE; import static org.openqa.selenium.testing.drivers.Browser.FIREFOX; -import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT; import static org.openqa.selenium.testing.drivers.Browser.IE; import static org.openqa.selenium.testing.drivers.Browser.SAFARI; @@ -106,12 +105,10 @@ public void testDraggingElementWithPenMovesItToAnotherList() { // This test is very similar to testDraggingElementWithPen. The only // difference is that this test also verifies the correct events were fired. @Test - @NotYetImplemented(HTMLUNIT) @NotYetImplemented(SAFARI) public void testDraggingElementWithPenFiresEvents() { performDragAndDropWithPen(); WebElement dragReporter = driver.findElement(By.id("dragging_reports")); - // This is failing under HtmlUnit. A bug was filed. String text = dragReporter.getText(); assertThat(text).matches("Nothing happened. (?:DragOut *)+DropIn RightItem 3"); } @@ -179,7 +176,6 @@ void testCannotMoveToANullLocator() { } @Test - @Ignore(value = HTMLUNIT, reason = "test should enable JavaScript") @NotYetImplemented(SAFARI) public void testMovingPastViewPortThrowsException() { assertThatExceptionOfType(MoveTargetOutOfBoundsException.class) @@ -244,7 +240,6 @@ public void testHoverPersists() throws Exception { } @Test - @NotYetImplemented(HTMLUNIT) public void testMovingPenByRelativeOffset() { driver.get(pages.mouseTrackerPage); @@ -262,7 +257,6 @@ public void testMovingPenByRelativeOffset() { } @Test - @NotYetImplemented(HTMLUNIT) public void testMovingPenToRelativeElementOffset() { driver.get(pages.mouseTrackerPage); @@ -278,7 +272,6 @@ public void testMovingPenToRelativeElementOffset() { } @Test - @NotYetImplemented(HTMLUNIT) public void testMovingPenToRelativeZeroElementOffset() { driver.get(pages.mouseTrackerPage); @@ -293,7 +286,6 @@ public void testMovingPenToRelativeZeroElementOffset() { @NeedsFreshDriver({IE, CHROME, FIREFOX, EDGE}) @Test - @NotYetImplemented(HTMLUNIT) @NotYetImplemented(SAFARI) public void testMoveRelativeToBody() { try { @@ -316,7 +308,6 @@ public void testMoveRelativeToBody() { @Test @Ignore(value = FIREFOX, issue = "https://github.com/mozilla/geckodriver/issues/789") - @NotYetImplemented(HTMLUNIT) @NotYetImplemented(SAFARI) public void testMovePenByOffsetOverAndOutOfAnElement() { driver.get(pages.mouseOverPage); @@ -355,7 +346,6 @@ public void testMovePenByOffsetOverAndOutOfAnElement() { @Test @Ignore(value = FIREFOX, issue = "https://github.com/mozilla/geckodriver/issues/789") - @NotYetImplemented(HTMLUNIT) @NotYetImplemented(SAFARI) public void testCanMoveOverAndOutOfAnElement() { driver.get(pages.mouseOverPage); diff --git a/java/test/org/openqa/selenium/logging/AvailableLogsTest.java b/java/test/org/openqa/selenium/logging/AvailableLogsTest.java index 299c7c869047f..ef472e9d7a4e6 100644 --- a/java/test/org/openqa/selenium/logging/AvailableLogsTest.java +++ b/java/test/org/openqa/selenium/logging/AvailableLogsTest.java @@ -20,7 +20,6 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.junit.jupiter.api.Assumptions.assumeTrue; import static org.openqa.selenium.testing.drivers.Browser.FIREFOX; -import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT; import static org.openqa.selenium.testing.drivers.Browser.IE; import static org.openqa.selenium.testing.drivers.Browser.SAFARI; @@ -31,7 +30,6 @@ import org.openqa.selenium.testing.Ignore; import org.openqa.selenium.testing.JupiterTestBase; -@Ignore(HTMLUNIT) @Ignore(IE) @Ignore(FIREFOX) @Ignore(SAFARI) diff --git a/java/test/org/openqa/selenium/logging/GetLogsTest.java b/java/test/org/openqa/selenium/logging/GetLogsTest.java index 58a99d867d2e7..ce57aaf728d03 100644 --- a/java/test/org/openqa/selenium/logging/GetLogsTest.java +++ b/java/test/org/openqa/selenium/logging/GetLogsTest.java @@ -19,7 +19,6 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.openqa.selenium.testing.drivers.Browser.FIREFOX; -import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT; import static org.openqa.selenium.testing.drivers.Browser.IE; import static org.openqa.selenium.testing.drivers.Browser.SAFARI; @@ -33,7 +32,6 @@ import org.openqa.selenium.testing.Ignore; import org.openqa.selenium.testing.JupiterTestBase; -@Ignore(HTMLUNIT) @Ignore(IE) @Ignore(FIREFOX) @Ignore(SAFARI) diff --git a/java/test/org/openqa/selenium/logging/PerformanceLogTypeTest.java b/java/test/org/openqa/selenium/logging/PerformanceLogTypeTest.java index 13a5ae63370e4..8398e6b7f9eb4 100644 --- a/java/test/org/openqa/selenium/logging/PerformanceLogTypeTest.java +++ b/java/test/org/openqa/selenium/logging/PerformanceLogTypeTest.java @@ -19,7 +19,6 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.openqa.selenium.testing.drivers.Browser.FIREFOX; -import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT; import static org.openqa.selenium.testing.drivers.Browser.IE; import static org.openqa.selenium.testing.drivers.Browser.SAFARI; @@ -30,7 +29,6 @@ import org.openqa.selenium.testing.Ignore; import org.openqa.selenium.testing.JupiterTestBase; -@Ignore(HTMLUNIT) @Ignore(IE) @Ignore(FIREFOX) @Ignore(SAFARI) diff --git a/java/test/org/openqa/selenium/logging/PerformanceLoggingTest.java b/java/test/org/openqa/selenium/logging/PerformanceLoggingTest.java index 6072ffee7a667..64ff8bd1b5eec 100644 --- a/java/test/org/openqa/selenium/logging/PerformanceLoggingTest.java +++ b/java/test/org/openqa/selenium/logging/PerformanceLoggingTest.java @@ -19,7 +19,6 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.openqa.selenium.testing.drivers.Browser.FIREFOX; -import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT; import static org.openqa.selenium.testing.drivers.Browser.IE; import static org.openqa.selenium.testing.drivers.Browser.SAFARI; @@ -29,7 +28,6 @@ import org.openqa.selenium.testing.Ignore; import org.openqa.selenium.testing.JupiterTestBase; -@Ignore(HTMLUNIT) @Ignore(IE) @Ignore(SAFARI) @Ignore(FIREFOX) diff --git a/java/test/org/openqa/selenium/remote/RemoteWebDriverScreenshotTest.java b/java/test/org/openqa/selenium/remote/RemoteWebDriverScreenshotTest.java index 9d85fb3a3299e..40936e1b597ca 100644 --- a/java/test/org/openqa/selenium/remote/RemoteWebDriverScreenshotTest.java +++ b/java/test/org/openqa/selenium/remote/RemoteWebDriverScreenshotTest.java @@ -20,7 +20,6 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatExceptionOfType; import static org.openqa.selenium.OutputType.BASE64; -import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT; import org.junit.jupiter.api.Test; import org.openqa.selenium.By; @@ -30,7 +29,6 @@ import org.openqa.selenium.testing.Ignore; import org.openqa.selenium.testing.JupiterTestBase; -@Ignore(HTMLUNIT) class RemoteWebDriverScreenshotTest extends JupiterTestBase { @Test diff --git a/java/test/org/openqa/selenium/testing/BUILD.bazel b/java/test/org/openqa/selenium/testing/BUILD.bazel index 04b6a55f62a53..9bc398860502a 100644 --- a/java/test/org/openqa/selenium/testing/BUILD.bazel +++ b/java/test/org/openqa/selenium/testing/BUILD.bazel @@ -65,7 +65,6 @@ java_library( artifact("org.junit.platform:junit-platform-commons"), artifact("org.eclipse.mylyn.github:org.eclipse.egit.github.core"), artifact("org.assertj:assertj-core"), - artifact("org.seleniumhq.selenium:htmlunit-driver"), ] + JUNIT5_DEPS, ) diff --git a/java/test/org/openqa/selenium/testing/TestUtilities.java b/java/test/org/openqa/selenium/testing/TestUtilities.java index f1bc57265c482..3cbe9971a7526 100644 --- a/java/test/org/openqa/selenium/testing/TestUtilities.java +++ b/java/test/org/openqa/selenium/testing/TestUtilities.java @@ -30,7 +30,6 @@ import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.Platform; import org.openqa.selenium.WebDriver; -import org.openqa.selenium.htmlunit.HtmlUnitDriver; public class TestUtilities { @@ -40,9 +39,6 @@ public static String getUserAgent(WebDriver driver) { } catch (Throwable e) { // Some drivers will only execute JS once a page has been loaded. Since those // drivers aren't Firefox or IE, we don't worry about that here. - // - // Non-javascript-enabled HtmlUnit throws an UnsupportedOperationException here. - // Let's just ignore that. return ""; } } @@ -61,7 +57,7 @@ public static boolean isInternetExplorer(WebDriver driver) { } public static boolean isChrome(WebDriver driver) { - return !(driver instanceof HtmlUnitDriver) && getUserAgent(driver).contains("Chrome"); + return getUserAgent(driver).contains("Chrome"); } public static int getChromeVersion(WebDriver driver) { diff --git a/java/test/org/openqa/selenium/testing/drivers/BUILD.bazel b/java/test/org/openqa/selenium/testing/drivers/BUILD.bazel index afa80c5fa2069..cd53ff5a7b1ff 100644 --- a/java/test/org/openqa/selenium/testing/drivers/BUILD.bazel +++ b/java/test/org/openqa/selenium/testing/drivers/BUILD.bazel @@ -55,6 +55,5 @@ java_library( "//java/test/org/openqa/selenium/build", artifact("com.google.guava:guava"), artifact("org.junit.jupiter:junit-jupiter-api"), - artifact("org.seleniumhq.selenium:htmlunit-driver"), ] + JUNIT5_DEPS, ) diff --git a/java/test/org/openqa/selenium/testing/drivers/DefaultDriverSupplier.java b/java/test/org/openqa/selenium/testing/drivers/DefaultDriverSupplier.java index 757ee03e8073f..2bd5cdcb99d58 100644 --- a/java/test/org/openqa/selenium/testing/drivers/DefaultDriverSupplier.java +++ b/java/test/org/openqa/selenium/testing/drivers/DefaultDriverSupplier.java @@ -25,7 +25,6 @@ import org.openqa.selenium.Capabilities; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebDriverInfo; -import org.openqa.selenium.htmlunit.HtmlUnitDriver; class DefaultDriverSupplier implements Supplier { @@ -40,10 +39,6 @@ public WebDriver get() { Function driverConstructor; if (capabilities != null) { - if (org.openqa.selenium.remote.Browser.HTMLUNIT.is(capabilities)) { - return new HtmlUnitDriver(); - } - return ServiceLoader.load(WebDriverInfo.class).stream() .map(ServiceLoader.Provider::get) .filter(info -> info.isSupporting(capabilities))