Mobile Browser Tests
Disclaimer: This is a bit of a cheat. It's not really testing mobile browsers. Rather, it's testing how responsive web pages behave in mobile browser-like conditions.
In this video I will demonstrate a way that may be good enough for you, depending on how you are intending your website to be used. This isn't proper mobile phone browser testing, instead it is resizing your Selenium-based browser session to view the website in a given set of dimensions, allowing you to test how your website behaves for those screen sizes.
The commands we can use are:
As I say, this may be good enough for you. It may not. It really depends on your project.