{"action":"created","issue":{"url":"https://api.github.com/repos/yandex-qatools/ashot/issues/71","repository_url":"https://api.github.com/repos/yandex-qatools/ashot","labels_url":"https://api.github.com/repos/yandex-qatools/ashot/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/yandex-qatools/ashot/issues/71/comments","events_url":"https://api.github.com/repos/yandex-qatools/ashot/issues/71/events","html_url":"https://github.com/yandex-qatools/ashot/issues/71","id":156898037,"number":71,"title":"Getting black spot on the Chrome - Tablet Emulator screenshot while Capturing the entire page","user":{"login":"seliniumtester","id":19582905,"avatar_url":"https://avatars.githubusercontent.com/u/19582905?v=3","gravatar_id":"","url":"https://api.github.com/users/seliniumtester","html_url":"https://github.com/seliniumtester","followers_url":"https://api.github.com/users/seliniumtester/followers","following_url":"https://api.github.com/users/seliniumtester/following{/other_user}","gists_url":"https://api.github.com/users/seliniumtester/gists{/gist_id}","starred_url":"https://api.github.com/users/seliniumtester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seliniumtester/subscriptions","organizations_url":"https://api.github.com/users/seliniumtester/orgs","repos_url":"https://api.github.com/users/seliniumtester/repos","events_url":"https://api.github.com/users/seliniumtester/events{/privacy}","received_events_url":"https://api.github.com/users/seliniumtester/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-26T03:50:43Z","updated_at":"2016-05-26T14:40:18Z","closed_at":null,"body":"Getting black spot on the Chrome-Tablet emulator screenshot while Capturing the entire page by using \r\nnew AShot()\r\n  .shootingStrategy(ShootingStrategies.viewportPasting(100))\r\n  .takeScreenshot(webDriver);\r\n\r\nSame works fine for Chrome- Phone emulator.\r\n\r\nPlease provide resolution for this issue.\r\n\r\nHere is the code.\r\n    String baseUrl = \"https://github.com/yandex-qatools/ashot\";\r\n \r\n        Map<String, String> mobileEmulation = new HashMap<String, String>();\r\n\t\tmobileEmulation.put(\"deviceName\", \"Apple iPad\");\r\n\t\tMap<String, Object> chromeOptions = new HashMap<String, Object>();\r\n\t\tchromeOptions.put(\"mobileEmulation\", mobileEmulation);\r\n\t\tDesiredCapabilities capabilities = DesiredCapabilities.chrome();\r\n\t\tcapabilities.setCapability(ChromeOptions.CAPABILITY, chromeOptions);\r\n\t\tWebDriver driver = new ChromeDriver(capabilities);\r\n        driver.manage().window().maximize();\r\n   \r\n        driver.get(baseUrl);\r\n        \r\n        final Screenshot screenshot = new AShot()\r\n        \t\t  .shootingStrategy(ShootingStrategies.viewportPasting(100))\r\n        \t\t  .takeScreenshot(driver);\r\n\r\n        final BufferedImage image = screenshot.getImage();\r\n        ImageIO.write(image, \"PNG\", new File(\"C:\\\\Selenium\\\\\"+ \"Ahot-Tablet.png\"));\r\n\r\nTablet Screenshot:\r\n![ahot-tablet](https://cloud.githubusercontent.com/assets/19582905/15563080/d15d1408-2322-11e6-8d14-4b4e8aa8ae78.png)\r\n\r\nPhone Screenshot:\r\n![ahot-phone](https://cloud.githubusercontent.com/assets/19582905/15563098/180d5822-2323-11e6-8f8b-a6d972a3f134.png)\r\n"},"comment":{"url":"https://api.github.com/repos/yandex-qatools/ashot/issues/comments/221890606","html_url":"https://github.com/yandex-qatools/ashot/issues/71#issuecomment-221890606","issue_url":"https://api.github.com/repos/yandex-qatools/ashot/issues/71","id":221890606,"user":{"login":"seliniumtester","id":19582905,"avatar_url":"https://avatars.githubusercontent.com/u/19582905?v=3","gravatar_id":"","url":"https://api.github.com/users/seliniumtester","html_url":"https://github.com/seliniumtester","followers_url":"https://api.github.com/users/seliniumtester/followers","following_url":"https://api.github.com/users/seliniumtester/following{/other_user}","gists_url":"https://api.github.com/users/seliniumtester/gists{/gist_id}","starred_url":"https://api.github.com/users/seliniumtester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seliniumtester/subscriptions","organizations_url":"https://api.github.com/users/seliniumtester/orgs","repos_url":"https://api.github.com/users/seliniumtester/repos","events_url":"https://api.github.com/users/seliniumtester/events{/privacy}","received_events_url":"https://api.github.com/users/seliniumtester/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T14:40:18Z","updated_at":"2016-05-26T14:40:18Z","body":"Hi, yes i am using the build in Chrome emulator. I am using the below custom capability provided in the chromedriver.exe. I am trying to emulate Apple iPad device.\r\n\r\n    Map<String, String> mobileEmulation = new HashMap<String, String>();\r\n    mobileEmulation.put(\"deviceName\", \"Apple iPad\");\r\n    Map<String, Object> chromeOptions = new HashMap<String, Object>();\r\n    chromeOptions.put(\"mobileEmulation\", mobileEmulation);\r\n    DesiredCapabilities capabilities = DesiredCapabilities.chrome();\r\n    capabilities.setCapability(ChromeOptions.CAPABILITY, chromeOptions);\r\n    WebDriver driver = new ChromeDriver(capabilities);\r\n"}}
{"actor":{"display_login":"seliniumtester"}}