> 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/faq/faq-create-scenario/faq-js-step/frequently-asked-questions-about-js-step.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# JSステップに関するよくあるご質問

### 操作対象の要素の選択がうまく出来ない場合はどうすればいいですか？

要素が動的なデータを含む場合など、デベロッパーツールを利用して取得したセレクターをそのまま利用できない場合がございます。 JSステップ内で操作対象の要素をうまく選択できない場合には、以下の記事が参考になりますので、ご確認ください。

* [CSSセレクターに問題がある場合、どのように修正すればいいですか？](https://help.autify.com/nocode-web/when-the-test-doesnt-work/tips/how-to-fix-css-selector-errors.md)
* [要素が動的なデータを含む場合、どうすればテストを安定させられますか？](https://help.autify.com/nocode-web/when-the-test-doesnt-work/test-issues/how-to-grab-an-element-with-dynamic-data.md)

### JSステップのタイムアウト時間は何秒ですか？

JSステップのタイムアウト時間は120秒です。 120秒以上かかる処理を実行されたい場合には、ステップを複数ステップに分ける、ステップとステップの間に待機ステップを入れるなどの対応をご検討ください。

### レコーディングとJSステップ操作に違いはありますか？

はい。レコーディングとJSステップでの操作は、違いが生じることがございます。 違いが生じる原因は、操作方法の違いによるものです。

例えばクリックを例にとりますと、レコーディングでは実際にクリック操作が行われますが、JSステップでは、HTMLElement.click()メソッドにより要素のクリックを行います。 HTMLElement.click()では、一部のイベントをdispatchしないため、クリックによるイベントが発火しない場合があり、その結果、実際のクリックと異なる挙動をすることがございます。

JSステップを作成した際に、実際の挙動と異なる場合には、別途設定されているイベントを発火させるなどの処理が必要なことがございますので、サポートまでご連絡いただけますと幸いです。


---

# 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/faq/faq-create-scenario/faq-js-step/frequently-asked-questions-about-js-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.
