Skip to content

is it possible to run on mobiles not chrome mobile #1144

Answered by mdmintz
tallevy22 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @tallevy22, the --mobile option enables the Chromium Mobile Device Emulator, which works for both Chrome browsers and Edge browsers. Here are the full details about it from the SeleniumBase docs:


Use --mobile to quickly run your tests using Chrome's mobile device emulator with default values for device metrics (CSS Width, CSS Height, Pixel-Ratio) and a default value set for the user agent. To configure the mobile device metrics, use --metrics="CSS_Width,CSS_Height,Pixel_Ratio" to set those values. You'll also be able to set the user agent with --agent="USER-AGENT-STRING" (a default user agent will be used if not specified). To find real values for device metrics, see this GitHub Gist.…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants