travist / jquery.go.js

An easy-to-use web testing and automation tool that uses the jQuery interface within Node.js to interact with the Phantom.js browser.
MIT License
150 stars 35 forks source link

Mobile UI Testing #24

Open obihill opened 9 years ago

obihill commented 9 years ago

Hi Travis,

This is a great project and is just what I needed to do some web page automation. Kudos!

I was wondering how to use this to do mobile testing? Specifically, I need to:

  1. Change the size of the viewport
  2. Change the user agent string

Cheers.

obihill commented 9 years ago

Hi Travis,

Any chance you could advise on this issue.

Thanks.

denisu commented 9 years ago

It is possible to set the size of the viewport by using

$.config.width = 1920
$.config.height = 1080

Currently it is not possible to change the user agent, I created a pull request: https://github.com/travist/jquery.go.js/pull/32