【モダンアクティビティ】スクリーンショット撮影について

投稿失礼いたします。

現在、モダンアクティビティでの開発を行っているのですが、
エラー発生時の画面状況を確認するためにスクリーンショット撮影機能を実装しようと考えています。

従来のTake ScreenShotアクティビティであれば、セレクター指定なしでアクティビティの利用ができたのですが、モダンアクティビティになってからその設定が出来ず困っています。

自分の設定が悪いのかとも思ったので、モダンアクティビティを利用して上記処理を実現することができるのか、出来ないようであれば回避手段についてご教示いただけると幸いです。

HI @dev.sn

You can use the Classic Activity

to use that you need to enable the Show Classic in the filters of the Activities Panel
image

In the opened window you will have shoe Claasic you need to tick that and now you can use the classic Take Screenshot

Regards
Sudharsan

こんにちは

UiAutomation.Activities packageのバージョンはいくつをお使いでしょうか?

22.4.4で単独動作するようになっていますので、それ未満なら、バージョンをあげてみてはと思います。(ただし画面全体を取得するには、コンテナの外で使う必要がありますが...)

https://docs.uipath.com/activities/lang-ja/docs/release-notes-uipath-uiautomation-activities#uiautomation-modern-1

Hi @Sudharsan_Ka

thank you.
However, since classic activities cannot be used, I will try to find a way to do it in modern.

Why any specific reason ? @dev.sn , Classic activities are the official ones this is kind of weird to me , Often will have restriction not to use any other packages apart from officials

@Yoichi
ご回答いただきありがとうございます!そうなんですね。。

現在バージョン確認できないのですが、22.4.4よりは低かったと記憶しています。
22.4.4に上げられるかを確認しつつ、厳しそうであれば 「Windows+PrintScreen」でスクリーンショット画像のファイルを生成してピクチャフォルダから拾い上げる処理にしてみようかと思います。

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.