{"action":"opened","issue":{"url":"https://api.github.com/repos/hifive/hifive-pitalium/issues/20","labels_url":"https://api.github.com/repos/hifive/hifive-pitalium/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/hifive/hifive-pitalium/issues/20/comments","events_url":"https://api.github.com/repos/hifive/hifive-pitalium/issues/20/events","html_url":"https://github.com/hifive/hifive-pitalium/issues/20","id":96804632,"number":20,"title":"Action#dragAndDropByの後にassertViewを実行するとスクリーンショットに余白ができる","user":{"login":"meganetaaan","id":1918755,"avatar_url":"https://avatars.githubusercontent.com/u/1918755?v=3","gravatar_id":"","url":"https://api.github.com/users/meganetaaan","html_url":"https://github.com/meganetaaan","followers_url":"https://api.github.com/users/meganetaaan/followers","following_url":"https://api.github.com/users/meganetaaan/following{/other_user}","gists_url":"https://api.github.com/users/meganetaaan/gists{/gist_id}","starred_url":"https://api.github.com/users/meganetaaan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meganetaaan/subscriptions","organizations_url":"https://api.github.com/users/meganetaaan/orgs","repos_url":"https://api.github.com/users/meganetaaan/repos","events_url":"https://api.github.com/users/meganetaaan/events{/privacy}","received_events_url":"https://api.github.com/users/meganetaaan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-23T12:41:10Z","updated_at":"2015-07-23T12:41:10Z","closed_at":null,"body":"##### 条件\r\n・Firefox v39.0\r\n　　// ChromeやIEでは発生しない\r\n・スライダーを含むページのテスト\r\n・SeleniumのAction#dragAndDropByメソッドを使ってスライダーをドラッグ・ドロップした後に\r\n　AssertionView.assertView()を実行する\r\n\r\n##### 現象\r\n・取得したスクリーンショットの側面に透明な余白ができる\r\n・余白はドラッグ・ドロップの幅に応じて変わる\r\n\r\n##### コード\r\n```Java\r\nimport org.junit.Test;\r\nimport com.htmlhifive.testlib.core.MrtTestBase;\r\n\r\npublic class SliderTest extends MrtTestBase {\r\n\t@Test\r\n\tpublic void sliderDragDropTest() {\r\n\t\tdriver.get(\"http://path/to/my/app\");\r\n\t\tWebElement slider = driver.findElement(By.id(\"slider\"));\r\n\t\tnew Actions(this.driver).dragAndDropBy(slider, 200, 0).perform();\r\n\t\tassertionView.assertView(\"dragdropSlider\");\r\n\t}\r\n}\r\n```\r\n\r\n##### スクリーンショット\r\n画像右側に余白ができている。\r\n![swipetest_dragdropslider_windows_firefox](https://cloud.githubusercontent.com/assets/1918755/8850448/2e09175c-3183-11e5-88ea-ac5bf4e8481f.png)\r\n"}}