Skip to content

Commit

Permalink
remove the code we no longer need because the screenshot feature has …
Browse files Browse the repository at this point in the history
…been replaced by Selenium Shutterbug. (#321)
  • Loading branch information
vmi committed Aug 15, 2020
1 parent 8d49644 commit 9964481
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/main/java/jp/vmi/selenium/selenese/Runner.java
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,6 @@ protected String takeScreenshot(File file, boolean entirePage) throws Unsupporte
if (tss == null)
throw new UnsupportedOperationException("webdriver does not support capturing screenshot.");
file = file.getAbsoluteFile();
try {
// cf. http://prospire-developers.blogspot.jp/2013/12/selenium-webdriver-tips.html (Japanese)
driver.switchTo().defaultContent();
} catch (Exception e) {
// some times switching to default context throws exceptions like:
// Method threw 'org.openqa.selenium.UnhandledAlertException' exception.
}
File tmp;
try {
File dir = file.getParentFile();
Expand Down

0 comments on commit 9964481

Please sign in to comment.