55
66package ch .racic .selenium .helper .download ;
77
8+ import ch .racic .junit .annotation .TargetOS ;
9+ import ch .racic .junit .runner .OSSensitiveRunner ;
810import net .anthavio .phanbedder .Phanbedder ;
911import org .apache .commons .io .FileUtils ;
1012import org .eclipse .jetty .server .Handler ;
1113import org .eclipse .jetty .server .Server ;
1214import org .eclipse .jetty .server .handler .HandlerList ;
1315import org .eclipse .jetty .server .handler .ResourceHandler ;
1416import org .junit .*;
17+ import org .junit .runner .RunWith ;
1518import org .openqa .selenium .WebDriver ;
1619import org .openqa .selenium .chrome .ChromeDriver ;
1720import org .openqa .selenium .firefox .FirefoxDriver ;
2831/**
2932 * Created by rac on 08.06.14.
3033 */
34+ @ RunWith (OSSensitiveRunner .class )
3135public class SeleniumDownloadHelperTest {
3236
3337 private WebDriver driver ;
@@ -74,8 +78,8 @@ public void tearDownTestDriver() throws Exception {
7478 }
7579
7680 @ Test
81+ @ Ignore ("Known to fail" )
7782 public void testGetFileFromUrlHtmlUnit () throws Exception {
78- // Create HTMLUnit as driver for this test
7983 driver = new HtmlUnitDriver (true );
8084 invokeGetFileDataFromUrl ();
8185 invokeGetFileFromUrl ();
@@ -91,6 +95,7 @@ public void testGetFileFromUrlChrome() throws Exception {
9195 }
9296
9397 @ Test
98+ @ TargetOS (family = "mac" )
9499 public void testGetFileFromUrlSafari () throws Exception {
95100 driver = new SafariDriver ();
96101 invokeGetFileDataFromUrl ();
@@ -105,6 +110,7 @@ public void testGetFileFromUrlFireFox() throws Exception {
105110 }
106111
107112 @ Test
113+ @ TargetOS (family = "windows" )
108114 public void testGetFileFromUrlInternetExplorer () throws Exception {
109115 //TODO Fetch latest binaries and make arch specific profiles
110116 driver = new InternetExplorerDriver ();
0 commit comments