{"action":"created","issue":{"url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/1175","labels_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/1175/labels{/name}","comments_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/1175/comments","events_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/1175/events","html_url":"https://github.com/SeleniumHQ/selenium/issues/1175","id":112532164,"number":1175,"title":"How to turn on responsive design view.","user":{"login":"Johnz86","id":2708520,"avatar_url":"https://avatars.githubusercontent.com/u/2708520?v=3","gravatar_id":"","url":"https://api.github.com/users/Johnz86","html_url":"https://github.com/Johnz86","followers_url":"https://api.github.com/users/Johnz86/followers","following_url":"https://api.github.com/users/Johnz86/following{/other_user}","gists_url":"https://api.github.com/users/Johnz86/gists{/gist_id}","starred_url":"https://api.github.com/users/Johnz86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Johnz86/subscriptions","organizations_url":"https://api.github.com/users/Johnz86/orgs","repos_url":"https://api.github.com/users/Johnz86/repos","events_url":"https://api.github.com/users/Johnz86/events{/privacy}","received_events_url":"https://api.github.com/users/Johnz86/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-21T08:07:21Z","updated_at":"2015-10-21T10:42:30Z","closed_at":"2015-10-21T10:42:30Z","body":"I am using java selenium driver and I want to turn on automatically the responsive design view with specific resolution at firefox start. Is it possible? I tried to set.\r\n\r\n```\r\nString responsiveMode = \"{\"+\"\\\"key\\\":\\\"800x600\\\",\\n\"+\"\\\"name\\\":\\\"POS Terminal\\\",\\n\"+\"\\\"width\\\":800,\\n\"+\"\\\"height\\\": 600\"+\"}\";\r\nFirefoxProfile profile = new FirefoxProfile();\r\nprofile.setPreference(\"devtools.responsiveUI.presets\", responsiveMode);\r\n```\r\nBut that did not work. Any recommendation? "},"comment":{"url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/comments/149851219","html_url":"https://github.com/SeleniumHQ/selenium/issues/1175#issuecomment-149851219","issue_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/1175","id":149851219,"user":{"login":"Johnz86","id":2708520,"avatar_url":"https://avatars.githubusercontent.com/u/2708520?v=3","gravatar_id":"","url":"https://api.github.com/users/Johnz86","html_url":"https://github.com/Johnz86","followers_url":"https://api.github.com/users/Johnz86/followers","following_url":"https://api.github.com/users/Johnz86/following{/other_user}","gists_url":"https://api.github.com/users/Johnz86/gists{/gist_id}","starred_url":"https://api.github.com/users/Johnz86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Johnz86/subscriptions","organizations_url":"https://api.github.com/users/Johnz86/orgs","repos_url":"https://api.github.com/users/Johnz86/repos","events_url":"https://api.github.com/users/Johnz86/events{/privacy}","received_events_url":"https://api.github.com/users/Johnz86/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T10:42:30Z","updated_at":"2015-10-21T10:42:30Z","body":"Ok, I resolved the issue.\r\n\r\nI created this gist. https://gist.github.com/Johnz86/e865a0851c2a255f2902\r\nUsed it this way.\r\n```\r\nFirefoxProfile profile = new FirefoxProfile();\r\nFirefoxResponsiveMode.setViewSize(profile, \"Mobile Device\", 800, 600);\r\nDesiredCapabilities cap = DesiredCapabilities.firefox();\r\ncap.setCapability(FirefoxDriver.PROFILE, profile);\r\nDRIVER = new FirefoxDriver(cap);\r\nDRIVER.manage().window().maximize();\r\nFirefoxResponsiveMode.pressShortcut(DRIVER);\r\n```\r\nIt would be nice, if there was a feature like this in future selenium for all browsers."}}