Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Phantomjs を使用して Web ページの自動化を試みています。ブラウザレスの実行であるため、実行中のテストのスクリーンショットを取得する方法はありますか、メモリからのものである可能性があります
このコードを試してみましたが、うまくいきました。:)
File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE); FileUtils.copyFile(scrFile, new File("./screenshot/snap.png"));