File tree Expand file tree Collapse file tree 5 files changed +12
-6
lines changed
src/test/java/localbrowsers Expand file tree Collapse file tree 5 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public void chromeSetup(){
26
26
@ Test
27
27
public void test (){
28
28
driver .get ("http://lazycoder.io/about.html" );
29
- Assert .assertEquals (driver .getTitle (), "About " );
29
+ Assert .assertEquals (driver .getTitle (), "Lazy Coder Origins " );
30
30
}
31
31
32
32
@ AfterTest
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public void edgeSetup(){
26
26
@ Test (groups = {"windows" })
27
27
public void test (){
28
28
driver .get ("http://lazycoder.io/about.html" );
29
- Assert .assertEquals (driver .getTitle (), "About " );
29
+ Assert .assertEquals (driver .getTitle (), "Lazy Coder Origins " );
30
30
}
31
31
32
32
@ AfterTest
Original file line number Diff line number Diff line change @@ -23,14 +23,20 @@ public class Firefox {
23
23
public void firefoxSetup () {
24
24
DesiredCapabilities capabilities = DesiredCapabilities .firefox ();
25
25
capabilities .setCapability ("marionette" , true );
26
+ System .out .println (System .getProperty ("os.name" ));
27
+ if (!System .getProperty ("os.name" ).toLowerCase ().contains ("windows" )){
26
28
FirefoxBinary ff = new FirefoxBinary (new File ("/Applications/Firefox.app/Contents/MacOS/firefox-bin" ));
27
29
FirefoxProfile ffp = new FirefoxProfile ();
28
- driver = new FirefoxDriver (ff , ffp , capabilities );
30
+
31
+ driver = new FirefoxDriver (ff , ffp , capabilities );}
32
+ else {
33
+ driver = new FirefoxDriver ();
34
+ }
29
35
}
30
36
@ Test
31
37
public void test (){
32
38
driver .get ("http://lazycoder.io/about.html" );
33
- Assert .assertEquals (driver .getTitle (), "About " );
39
+ Assert .assertEquals (driver .getTitle (), "Lazy Coder Origins " );
34
40
}
35
41
36
42
@ AfterTest
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public void phantomJSSetup(){
22
22
@ Test
23
23
public void test (){
24
24
this .driver .get ("http://lazycoder.io/about.html" );
25
- Assert .assertEquals (driver .getTitle (), "About " );
25
+ Assert .assertEquals (driver .getTitle (), "Lazy Coder Origins " );
26
26
}
27
27
28
28
@ AfterTest
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public void safariSetup(){
26
26
@ Test
27
27
public void test (){
28
28
driver .get ("http://lazycoder.io/about.html" );
29
- Assert .assertEquals (driver .getTitle (), "About " );
29
+ Assert .assertEquals (driver .getTitle (), "Lazy Coder Origins " );
30
30
}
31
31
32
32
@ AfterTest
You can’t perform that action at this time.
0 commit comments