Chong Gu | ae2c09a | 2023-01-11 17:07:45 | [diff] [blame] | 1 | # Run Webpage Tests on Fuchsia |
| 2 | |
| 3 | [TOC] |
| 4 | |
| 5 | These tests allow developers to update Chrome/WebEngineShell on their |
| 6 | Fuchsia devices and navigate to a given url. |
| 7 | |
| 8 | To build Chrome or WebEngineShell follow |
| 9 | [build instructions](build_instructions.md). |
| 10 | |
| 11 | #### Usage |
| 12 | |
| 13 | The following command will start an emulator, update WebEngineShell, and |
| 14 | navigate to [URL]: |
| 15 | |
| 16 | ```bash |
David Dorwin | 44350d9 | 2023-02-06 16:49:00 | [diff] [blame] | 17 | $ ./build/fuchsia/test/run_test.py webpage --browser=web-engine-shell [URL] -C [OUTPUT_DIR] |
Chong Gu | ae2c09a | 2023-01-11 17:07:45 | [diff] [blame] | 18 | ``` |
| 19 | |
| 20 | To use with a persistent Fuchsia device, add the flag `--target-id=[FUCHSIA_NODENAME]` |
| 21 | to specify the device to use or `-d` if there is only one device connected. |