「アプリのステートを確認」アクティビティのバグ?

UiAutomation.Activities 24.10.3を使用しています。
「アプリのステートを確認」で「出現する要素」を判定する際、UiElement変数を入力として指定した場合に、その要素が存在しなくても結果がTrueと判定されます。
一方、「要素の存在を確認」ではそのようなことは起こらず正しく判定されました。
これはバグでしょうか。

@souhei_yamada,

Here I tested with the Studio Community Version and it’s working as expected.

Studio 2024.10.5 - 10/11/2024
Enterprise Trial License
Per-user Installation

License Provider: Orchestrator
Activation ID:

Microsoft Windows 11 Home Single Language 64-bit
8.0.10

Sample Code:
CheckAppState.zip (171.8 KB)

Try looking into the selectors again.

こんにちは

バグかどうかはわかりませんが、モダンアクティビティ全般がこのような挙動をとりますね。
例えば強調表示アクティビティやテキスト取得アクティビティは、UiElement指定時は、対象がなくとも例外とならないことと類似しているかと思います。

なるほど、モダンアクティビティ全般での挙動なのですね。
要素が存在しなくても例外とならないのは注意が必要ですね。ありがとうございます。

テストして頂きありがとうございます。
ただ、セレクター指定ではなく、UiElement変数を指定する際について、要素が存在しなくても要素が存在するように判定されます。

Thank you for testing.
However, when specifying the UiElement variable instead of specifying a selector, it is determined that the element exists even if it does not exist.