警告メッセージの消し方

こんにちは
StudioX 2024.10.14 LTSを使用中です。レガシプロジェクトです。

1.悩んでいること

クリックアクティビティで画像認識でターゲットを範囲設定すると

このアクティビティはフォアグラウンドで実行されます。

という警告メッセージが消えません。キーボードショートカットアクティビティでも同じトラブルが起きています。
入力モードをハードウェアイベントに設定しても効果がありませんでした。

警告メッセージの消し方をご教示ください。パッケージのバージョンもUPします。

Hey there! @gorby

For the “This activity is carried out in the foreground” warning on your Click activity this is coming from the Workflow Analyzer, not the activity itself. Since you’re using image recognition, foreground execution is technically required, so switching input mode to Hardware Events won’t make it disappear.

To stop seeing it:

  1. Go to Project → Project Settings → Workflow Analyzer
  2. Find the rule UI-ANA-018 (List OCR/Image Activities) or whichever UI automation rule is flagging it
  3. Either uncheck it to disable, or change the Default action from Warning to Info

You can also go to Settings → Design and uncheck Enforce Analyzer before Run if you don’t want warnings blocking your test runs.


For the package version warnings in Manage Packages (the ones saying “requires Studio v24.10 or above”) — if your current installed versions are working fine, you can safely ignore these. They’re just informational labels. StudioX won’t auto-upgrade them unless you manually click the update arrow.

If you do see red warning icons inside your actual project dependencies, try right-clicking in the Project panel → Repair Dependency, or manually pick a compatible version from the dropdown in Manage Packages.

Hope this helps! Let me know if the warning is showing up in a different place than what I covered.

Check is already off.
It seems your advice is useless for me.. :roll_eyes:
Don’t mess with me.

you can’t remove that warning while you’re using image recognition as the targeting method.

That warning icon on the Click activity itself is hardcoded by Studio — it’s not a Workflow Analyzer rule you can toggle off. Image recognition requires the foreground by design, so Studio always shows that reminder. Switching Input Mode to Hardware Events won’t make it disappear because the targeting method itself (image recognition) forces the foreground.

Your real options:

  1. Switch to a normal selector (strict/fuzzy) instead of image recognition that’s the only way the warning goes away completely.
  2. Just ignore it the warning is informational only. It won’t block execution in attended mode.
  3. Try Computer Vision as your targeting method instead different behavior, may or may not fit your app.

Sorry for the confusion earlier. The Analyzer on/off toggle only controls the Error List panel, not the activity-level warning icon.

Hope that clears it up.

No keyboard shortcuts work perfectly fine. That warning is just a heads-up, not an error that blocks anything.

Both image clicks and keyboard shortcuts need the target app to be visible and in focus. That’s why Studio shows the same warning for both. But as long as you’re running attended (you can see the screen), they execute without any issue.

The only time this actually breaks things is unattended mode like running on a robot in a background session with no visible desktop. In that case, yes, both image recognition and keyboard shortcuts will fail because there’s nothing to interact with.

If you need unattended/background execution, swap them out for:

Normal selectors with SimulateClick or SimulateType enabled
Chromium API for browser stuff
Direct API calls where possible

if you’re running attended, ignore the warning. It’s just Studio being verbose.