We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f84ad09 commit 63de58eCopy full SHA for 63de58e
apps/app/src/test/scala/org/lfdecentralizedtrust/splice/integration/tests/FrontendIntegrationTest.scala
@@ -442,7 +442,8 @@ trait FrontendTestCommon extends TestCommon with WebBrowser with CustomMatchers
442
*/
443
protected def screenshot()(implicit webDriver: WebDriverType): Unit = {
444
clue("Saving screenshot") {
445
- val screenshotFile = webDriver.getScreenshotAs(OutputType.FILE)
+ val fullScreen = webDriver.findElement(By.tagName("body"))
446
+ val screenshotFile = fullScreen.getScreenshotAs(OutputType.FILE)
447
val time = Calendar.getInstance.getTime
448
val timestamp = new SimpleDateFormat("yy-MM-dd-H:m:s.S").format(time)
449
val filename = Paths.get("log", s"screenshot-${timestamp}.png").toString
0 commit comments