> For the complete documentation index, see [llms.txt](https://help.autify.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.autify.com/nocode-web/when-the-test-doesnt-work/common-errors/element-is-not-interactive.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# 対象要素が操作できません。要素の状態を確認してください。

テスト実行中に、Autifyが見つけた要素を何かしらの原因で操作できなかった場合、テスト結果には以下のメッセージが表示されます。

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-98af14ed9448c3da721ea545b258f00ce60a08bf%2Fja_element_is_not_interactive.png?alt=media)

この記事では、このエラーが発生するケースと対応方法をいくつか紹介します。

## 要素が非活性になっている

特定の操作を起点に要素が活性化するといった仕様は、フォーム入力などでよくみられます。要素を活性化するための操作が足りなかったなどの理由で要素が活性化せず、その状態でテキスト入力などの操作を実行すると、このエラーが発生します。

対象要素が活性化するようにシナリオを修正して、再度テストを実行してください。

## 画面に表示されていない要素を取得した

Autifyは画面に表示されていない要素でも、html上に存在する要素であれば取得するため、画面に表示されている対象要素と特徴が似た要素がhtml上に存在している場合、その要素を取得してしまうことがあります。

画面に表示されている要素を取得できるように[ロケータ](https://help.autify.com/nocode-web/autify-university/advanced/locator-feature/add-a-locator.md)を指定し、再度テストを実行してください。

## 意図しないポップアップウィンドウやモーダルが表示されている

閉じ忘れや、何かしらの原因で閉じられなかった(開いてしまった)ポップアップウィンドウやモーダルによって、対象の要素が隠れてしまっている場合、このエラーが発生することがあります。

ポップアップウィンドウやモーダルを閉じるステップを追加して、再度テストを実行してください。

## ホバーステップがなかった

マウスオーバーで表示される要素を操作する場合、[ホバーステップ](https://help.autify.com/nocode-web/autify-university/foundation/creating-a-scenario/hover-step.md)がないと要素が画面に表示されません。画面に表示されていない状態で要素を操作しようとすると、このエラーが発生することがあります。

この場合の対応方法については、 [マウスオーバーで現れる要素の操作が失敗/要確認になってしまう](https://help.autify.com/nocode-web/when-the-test-doesnt-work/test-issues/troubuleshoot-hover-step-need-review.md) をご覧ください。

## ロケータに設定したCSSセレクター/XPathが誤っている

ロケータを設定して取得した要素に対して、特定のステップが実行できない場合があります。

例えばテキスト入力ステップは、対象要素がinput要素やtextarea要素などの入力可能な要素である必要があります。しかし誤って、その上にあるdiv要素などの入力ができない要素を設定していると、Autifyが値を入力できずにこのエラーが発生します。

Autify NoCode Web Help Centerにある検索窓への入力ステップにロケータを指定する場合、赤枠で囲まれたinput要素のCSSセレクター/XPathを設定する必要があります。しかし誤って、その上にある青枠で囲まれたdiv要素(`div.search-form`)を指定すると、このエラーが発生します。

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-0b262591acbdc2aada26952b24b0091d821be1b0%2Flocator-issue.png?alt=media)

正しくは、以下のようにdiv要素の下にあるinput要素を指すCSSセレクターにする必要があります。

```css
div.search-form input
```

ロケータに設定している値が正しいかを確認してください。

## それでも問題が解決しない場合...

いつでもカスタマーサポートチームにご連絡ください。問題を解決するお手伝いをいたします。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.autify.com/nocode-web/when-the-test-doesnt-work/common-errors/element-is-not-interactive.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
