Posts

Showing posts with the label resize

TA Basics: Device simulation with lapis_lazuli

Image
Lapis_lazuli provides a way to simulate a mobile device . But when you want to test on real or virtual desktop and especially mobile devices instead of using this simulation option, here is what you need to keep in mind. Dimensions In the devices.yml file (briefly mentioned in the  previous blog post ), you store all browser width and height dimensions you want to test on. It will look something like this: From the command line you could start a specific run with the command "cucumber DEVICE=desktop720" From IRB or env.rb you could start a browser session with "browser :firefox, device: 'desktop900'" Or you just add a default in the config.yml file "default_device: desktop1024", so you can run the cucumber command or the irb session without the need to enter a specific dimension This even works on remote browsers via selenium grid (just add the device: 'desktop1080' to the capabilities). Problem But there is one issue wit...