> 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/en/faq/faq-create-scenario/faq-recording/can-i-test-my-smartphone-web-h.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# Can I run tests on smartphones and tablets? How do I record scenarios?

{% hint style="warning" %}
The Chrome Mobile Device Environment (Autify Cloud Environment) is available on particular plans.
{% endhint %}

{% hint style="warning" %}
PC & Mobile browsers on real devices are available on particular plans.
{% endhint %}

Yes, you can. This article explains how to how to record and execute scenarios for mobile devices such as smartphones and tablets.

## How to Record Scenarios for Mobile Devices

There are two main ways to record test scenarios for mobile devices:

**1. Select a mobile size from the Window Size menu before recording** **2. Select an appropriate screen size in Chrome's Developer Tools before recording**

The mobile size you can select from the Window Size menu is iPhone X. If you wish to record a scenario for iPhone X, choose method 1. If you wish to pick a different mobile size, choose method 2.

### Select a mobile size from the Window Size menu before recording

1. Open the Create New Scenario page.
2. Select a mobile window size from the Window Size dropdown menu and launch the recording window.

   ![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-fd0027493bd44047a349e9abf89336af4f7bda0b%2FScreen%20Shot%202022-12-26%20at%2014.29.00.png?alt=media)
3. The window will open in mobile size. You can now begin recording. You can create a scenario for your mobile site by clicking, typing, and inserting assertions as you usually would.

**Note**: If you select a window size with a mobile device name (e.g., iPhone X), the user agent for accessing the target site during recording will be set to the same mobile device.

### Select an appropriate screen size in Chrome's Developer Tools before recording

1. Open the Create New Scenario page.
2. Select a PC window size from the Window Size dropdown menu and launch the recording window.
3. Open Google Chrome's Developer Tools. **Windows : Ctrl + Shift + I Mac : ⌥ + ⌘ + I**
4. Press the button that switches to mobile view.

   ![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-242814135cf8926ff319a2eecdb03691595641f2%2FScreen%20Shot%202022-12-26%20at%2014.31.26.png?alt=media)
5. Select your preferred device size.

   ![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-b9927bad52013ba66719f0579a7589dfa1694b4f%2FScreen%20Shot%202022-12-26%20at%2014.32.33.png?alt=media)
6. You can now create a scenario for your mobile site by clicking, typing, and inserting assertions as you usually would. However, the feature that highlights the target element in gray when inserting assertions is unavailable while recording scenarios for mobile sites. This is due to technical limitations. If you have trouble selecting the target element, please contact our support team.

## How to Run Mobile Tests

On Autify, there are these ways you can execute tests:

1. Execute by clicking the "Run Now iPhone X (Emulator)" button.
2. Execute via the Test Plans. 2-1. Execute on Device Mode in Chrome DevTools. 2-2. Execute on a real device.

### 1. Run a test by clicking "Run Now iPhone X (Emulator)"

If the scenario's Window Size is set to mobile size (375x812), the "Run Now iPhone X (Emulator)" button will appear. Once you click this button, the **test will immediately run on an iPhone X emulator**.

![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-d8072b9508d40c56ac6d04f1fc927e591bc42f40%2FScreen%20Shot%202022-12-26%20at%2014.34.31.png?alt=media)

### 2. Execute via the Test Plans

You can select the mobile execution environment via Test Plans. In the Test Plan, you can select emulators and real devices as the execution environment for mobile devices.

![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-704605b33029fd013fb2744686bb7f3658c9b683%2FScreen%20Shot%202022-12-26%20at%2014.38.12.png?alt=media)

![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-bb49528fcb6cd000bb14bc25665f4c02c85702c6%2FScreen%20Shot%202022-12-26%20at%2014.38.25.png?alt=media)

#### 2-1. Run a test on an emulator

When you run a test on an emulator, the test will be executed on Device Mode of the Chrome DevTools.

Device Mode in Chrome DevTools is a feature that simulates various device screen sizes, user agents, etc. For more information on Device Mode, please click [here](https://developer.chrome.com/docs/devtools/).

This method has the following characteristics:

* Since the test will not run on a real device, it's **only suitable as a quick check** and cannot be used for rigorous testing, such as whether the mobile OS and mobile browsers have an effect.
* It is **considerably faster** than running the test on a real device.
* It's **available on plans that allow you to use the Chrome Mobile Device Environment plans**.

#### 2-2. Run a test on a real device

When you run a test on a real device, the test will be executed on an actual device located in an "external device farm."

This method has the following characteristics:

* The test is performed on an actual device with the device's standard browser launched, so **you can check the effects of the OS and browser**.
* It is **considerably slower** than running the test in Device Mode.
* It is **available on plans that allow you to use a real mobile browser**.


---

# 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/en/faq/faq-create-scenario/faq-recording/can-i-test-my-smartphone-web-h.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.
