> 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/test-issues/the-test-fails-on-mouse-over-step.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# マウスオーバーステップが失敗する

「エレメントにマウスカーソルを重ねる」（またはマウスオーバー・ホバー）ステップが「要素が見つかりませんでした」というエラーで失敗する場合、ステップをレコーディングする対象の要素が誤っている可能性があります。

## 使用例

### ドロップダウンメニュー

例えば、autify.com の「資料一覧」は、「関連資料」にマウスポインターを載せないと表示されません。「関連資料」にホバーステップを追加すると、テスト実行時に資料一覧などのメニューが表示されます。 ホバーステップの追加方法は、[こちら](https://help.autify.com/nocode-web/autify-university/foundation/creating-a-scenario/hover-step.md) で確認できます。

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

### ツールチップ

リンクテキストなどにマウスカーソルを当てたときに表示される吹き出しのようなUIを「ツールチップ」と呼びます。 ツールチップのような、ホバー要素からマウスを外すと表示が消えてしまう要素に対してテストしたい場合は、JSステップで対象要素を表示させてから対象要素をテストしてください。 こちらに[JSステップのスニペット](https://javascript-snippets.autify.com/ja/snippets/mouse/mouseover/)をご用意しています。

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

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

## うまく行かない例

### マウスオーバーにより、親要素が完全に隠れてしまう場合

マウスオーバーで表示される要素がとても大きい場合など、親要素が完全に隠れてしまうことがあります。この場合、マウスオーバーステップは表示された要素の方にレコーディングされてしまいます。マウスオーバーステップをレコーディングした後、親要素のCSSセレクターを指定してください。


---

# 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/test-issues/the-test-fails-on-mouse-over-step.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.
