Skip to content

Commit

Permalink
fix test error due to changes in geckodriver 0.27.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
vmi committed Aug 15, 2020
1 parent dffb45c commit 8d49644
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ cache:
- $HOME/.m2
install:
- gd_url=https://github.com/mozilla/geckodriver/releases/download
- gd_ver=v0.21.0
- gd_ver=v0.27.0
- ( mkdir -pv bin; cd bin ; curl -L "${gd_url}/${gd_ver}/geckodriver-${gd_ver}-linux64.tar.gz" | gunzip | tar xf - ; chmod +x geckodriver )
- mvn -B -V dependency:resolve
before_script:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.junit.Test;
import org.junit.rules.ExternalResource;
import org.junit.rules.TemporaryFolder;
import org.openqa.selenium.SessionNotCreatedException;
import org.openqa.selenium.InvalidArgumentException;

import static org.openqa.selenium.firefox.FirefoxDriver.SystemProperty.*;

Expand Down Expand Up @@ -52,14 +52,14 @@ protected void after() {
* Test of not finding Firefox binary.
*
* @throws IOException exception.
* @throws IllegalArgumentException exception.
* @throws InvalidArgumentException exception.
*/
@Test(expected = IllegalStateException.class)
public void firefoxNotFoundIn_webdriver_firefox_bin() throws IOException, IllegalArgumentException {
@Test(expected = InvalidArgumentException.class)
public void firefoxNotFoundIn_webdriver_firefox_bin() throws IOException, InvalidArgumentException {
try {
new FirefoxDriverFactory().newInstance(new DriverOptions());
} catch (SessionNotCreatedException e) {
throw new IllegalStateException(e);
} catch (IllegalStateException e) {
throw new InvalidArgumentException(e.getMessage(), e);
}
}
}

0 comments on commit 8d49644

Please sign in to comment.