Skip to content

Commit 9964481

Browse files
committed
remove the code we no longer need because the screenshot feature has been replaced by Selenium Shutterbug. (#321)
1 parent 8d49644 commit 9964481

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/main/java/jp/vmi/selenium/selenese/Runner.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -226,13 +226,6 @@ protected String takeScreenshot(File file, boolean entirePage) throws Unsupporte
226226
if (tss == null)
227227
throw new UnsupportedOperationException("webdriver does not support capturing screenshot.");
228228
file = file.getAbsoluteFile();
229-
try {
230-
// cf. http://prospire-developers.blogspot.jp/2013/12/selenium-webdriver-tips.html (Japanese)
231-
driver.switchTo().defaultContent();
232-
} catch (Exception e) {
233-
// some times switching to default context throws exceptions like:
234-
// Method threw 'org.openqa.selenium.UnhandledAlertException' exception.
235-
}
236229
File tmp;
237230
try {
238231
File dir = file.getParentFile();

0 commit comments

Comments
 (0)