Often we end up having to test the website on how it behaves in different screen resolutions.Here selenium provides us with two things one is to set the browser to a maximum size of the screen the browser is open on and the other is to provide the dimensions and set it.