MaximumBoy
MaximumBoy

Reputation: 71

How can I simulate a mobile device with intern / leadfoot

I would like to test our mobile site but it is only served if we simulate a User Agent via chrome's device mode. How can I use the leadfoot API to simulate a mobile device such as an iPhone?

Upvotes: 0

Views: 38

Answers (1)

Jordan Garvey
Jordan Garvey

Reputation: 345

Instead of configuring Intern to run a browser installed locally, you can configure it to run on a service such as BrowserStack (more information on this here) so you can simulate it on mobile browsers.

Once you have that set up, Leadfoot provides specific methods that work well to test touch devices such as 'touchScroll'. Most if not all of the Leadfoot methods will work on simulated mobile devices however so you won't be limited to just the touch screen specific ones.

Upvotes: 1

Related Questions