Skip to content

Commit d5fea7e

Browse files
authored
Update to Selenium 4.3 (#1122)
* Update to Selenium 4.3 Remove references to removed selenium exceptions SeleniumHQ/selenium#10209
1 parent 431c58e commit d5fea7e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ hamcrestCoreVersion=1.3
55

66
lookfirstSardineVersion=5.7
77
jettyRepackagedVersion=9.4.12.v20180830
8-
seleniumVersion=4.1.1
8+
seleniumVersion=4.3.0
99
mockserverNettyVersion=5.5.1
1010

1111
labkeySchemasTestVersion=22.3-SNAPSHOT

src/org/labkey/test/WebDriverWrapper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ protected Pair<WebDriver, DriverService> createNewWebDriver(@NotNull Pair<WebDri
338338
profile.setAssumeUntrustedCertificateIssuer(false);
339339

340340
FirefoxOptions capabilities = new FirefoxOptions();
341-
capabilities.setCapability(FirefoxDriver.Capability.PROFILE, profile);
341+
capabilities.setProfile(profile);
342342
capabilities.setLogLevel(FirefoxDriverLogLevel.WARN);
343343
capabilities.addPreference("--log", "WARN");
344344

@@ -358,7 +358,7 @@ protected Pair<WebDriver, DriverService> createNewWebDriver(@NotNull Pair<WebDri
358358
TestLogger.warn("Launching Firefox in headless mode. This is still experimental");
359359
binary.addCommandLineOptions("--headless");
360360
}
361-
capabilities.setCapability(FirefoxDriver.Capability.BINARY, binary);
361+
capabilities.setBinary(binary);
362362
FirefoxOptions firefoxOptions = new FirefoxOptions(capabilities);
363363

364364
newDriverService = GeckoDriverService.createDefaultService();

src/org/labkey/test/components/ui/grids/GridBar.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import org.labkey.test.components.html.Input;
1515
import org.labkey.test.components.react.MultiMenu;
1616
import org.labkey.test.components.ui.Pager;
17-
import org.openqa.selenium.ElementNotVisibleException;
17+
import org.openqa.selenium.ElementNotInteractableException;
1818
import org.openqa.selenium.Keys;
1919
import org.openqa.selenium.NoSuchElementException;
2020
import org.openqa.selenium.StaleElementReferenceException;
@@ -68,7 +68,7 @@ private WebElement getExportButton(ExportType exportType)
6868
WebElement downloadBtn = Locator.tagWithClass("span", "fa-download").findElement(this);
6969

7070
if(!downloadBtn.isDisplayed())
71-
throw new ElementNotVisibleException("File export button is not visible.");
71+
throw new ElementNotInteractableException("File export button is not visible.");
7272

7373
downloadBtn.click();
7474

0 commit comments

Comments
 (0)