{"action":"created","issue":{"url":"https://api.github.com/repos/ariya/phantomjs/issues/13046","labels_url":"https://api.github.com/repos/ariya/phantomjs/issues/13046/labels{/name}","comments_url":"https://api.github.com/repos/ariya/phantomjs/issues/13046/comments","events_url":"https://api.github.com/repos/ariya/phantomjs/issues/13046/events","html_url":"https://github.com/ariya/phantomjs/issues/13046","id":59677227,"number":13046,"title":"Phantomjs opening Tablet site and not desktop","user":{"login":"amitsha","id":10155579,"avatar_url":"https://avatars.githubusercontent.com/u/10155579?v=3","gravatar_id":"","url":"https://api.github.com/users/amitsha","html_url":"https://github.com/amitsha","followers_url":"https://api.github.com/users/amitsha/followers","following_url":"https://api.github.com/users/amitsha/following{/other_user}","gists_url":"https://api.github.com/users/amitsha/gists{/gist_id}","starred_url":"https://api.github.com/users/amitsha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitsha/subscriptions","organizations_url":"https://api.github.com/users/amitsha/orgs","repos_url":"https://api.github.com/users/amitsha/repos","events_url":"https://api.github.com/users/amitsha/events{/privacy}","received_events_url":"https://api.github.com/users/amitsha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-03T17:40:24Z","updated_at":"2015-03-03T18:39:41Z","closed_at":null,"body":"Phantomjs driver launch code:\r\nDesiredCapabilities phantomjscap = DesiredCapabilities.phantomjs();\r\n        phantomjscap.setJavascriptEnabled(true);\r\n        phantomjscap.setCapability(PhantomJSDriverService.PHANTOMJS_EXECUTABLE_PATH_PROPERTY,\r\n                \"D:/phantomjsDriver/phantomjs.exe\");\r\n        phantomjscap.setCapability(PhantomJSDriverService.PHANTOMJS_CLI_ARGS, new String[] {\"--web-security=no\",\r\n                \"--ignore-ssl-errors=yes\"});\r\n        phantomjscap.setCapability(\"phantomjs.page.settings.userAgent\",\r\n                \"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0\");\r\n\r\ndriver = new RemoteWebDriver(new URL(\"http://localhost:4444/wd/hub\"), phantomjscap);\r\ndriver.manage().timeouts().pageLoadTimeout(100, TimeUnit.SECONDS);\r\n        driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\r\n        driver.manage().window().maximize();\r\n\r\ndriver.get(\"http://www.marksandspencer.com/\");\r\n\r\nThis opens the tablet version of the website.I took a screenshot, on failure, that's how i know this for sure.\r\n\r\nI've tried this on windows 7 machine, as well as mac osx. But it's opening tablet version.\r\nPhantomjs driver used: 1.9.8\r\n\r\nI have used phantomjs driver in the past, but haven't faced this issue.Please let me  know if i should be using a different user agent or is that an issue with this driver."},"comment":{"url":"https://api.github.com/repos/ariya/phantomjs/issues/comments/77006463","html_url":"https://github.com/ariya/phantomjs/issues/13046#issuecomment-77006463","issue_url":"https://api.github.com/repos/ariya/phantomjs/issues/13046","id":77006463,"user":{"login":"amitsha","id":10155579,"avatar_url":"https://avatars.githubusercontent.com/u/10155579?v=3","gravatar_id":"","url":"https://api.github.com/users/amitsha","html_url":"https://github.com/amitsha","followers_url":"https://api.github.com/users/amitsha/followers","following_url":"https://api.github.com/users/amitsha/following{/other_user}","gists_url":"https://api.github.com/users/amitsha/gists{/gist_id}","starred_url":"https://api.github.com/users/amitsha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitsha/subscriptions","organizations_url":"https://api.github.com/users/amitsha/orgs","repos_url":"https://api.github.com/users/amitsha/repos","events_url":"https://api.github.com/users/amitsha/events{/privacy}","received_events_url":"https://api.github.com/users/amitsha/received_events","type":"User","site_admin":false},"created_at":"2015-03-03T18:39:41Z","updated_at":"2015-03-03T18:39:41Z","body":"i have tried setting size using webdriver method driver.manage().window.setSize(new Dimension(2000,2000)) But, still the tablet view is getting opened."}}