leonid-shevtsov / headless

Create a virtual X screen from Ruby, record videos and take screenshots.
http://leonid.shevtsov.me/en/headless
MIT License
968 stars 113 forks source link

how to set screen size? #64

Closed atzorvas closed 9 years ago

atzorvas commented 9 years ago

I need a bigger screen size for my browser, how to do that? thanks

atzorvas commented 9 years ago

done, closing this :)

@headless = Headless.new(:dimensions => '1920x1080x24')
@browser.window.resize_to(1920, 1080) # watir browser
abderrahmanesaad commented 3 years ago

@atzorvas how did you managed to do that i did what you said but screen shift ti the right can you explain