File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed
src/test/java/localbrowsers Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 13
13
<dependency >
14
14
<groupId >org.seleniumhq.selenium</groupId >
15
15
<artifactId >selenium-java</artifactId >
16
- <version >3.0.1 </version >
16
+ <version >3.4.0 </version >
17
17
</dependency >
18
18
<dependency >
19
19
<groupId >org.testng</groupId >
20
20
<artifactId >testng</artifactId >
21
- <version >6.10 </version >
21
+ <version >6.11 </version >
22
22
</dependency >
23
23
</dependencies >
24
24
28
28
<plugin >
29
29
<groupId >org.apache.maven.plugins</groupId >
30
30
<artifactId >maven-surefire-plugin</artifactId >
31
- <version >2.19.1 </version >
31
+ <version >2.20 </version >
32
32
</plugin >
33
33
<plugin >
34
34
<groupId >org.eluder.coveralls</groupId >
41
41
<plugin >
42
42
<groupId >org.jacoco</groupId >
43
43
<artifactId >jacoco-maven-plugin</artifactId >
44
- <version >0.7.7.201606060606 </version >
44
+ <version >0.7.9 </version >
45
45
<executions >
46
46
<execution >
47
47
<goals >
Original file line number Diff line number Diff line change @@ -23,24 +23,24 @@ 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" )){
28
- FirefoxBinary ff = new FirefoxBinary (new File ("/Applications/Firefox.app/Contents/MacOS/firefox-bin" ));
29
- FirefoxProfile ffp = new FirefoxProfile ();
30
-
31
- driver = new FirefoxDriver (ff , ffp , capabilities );}
32
- else {
26
+ // mac requires the binary location to be set for firefox, not sure why at time of update
27
+ if (System .getProperty ("os.name" ).toLowerCase ().contains ("mac" )) {
28
+ FirefoxBinary ff = new FirefoxBinary (new File ("/Applications/Firefox.app/Contents/MacOS/firefox-bin" ));
29
+ FirefoxProfile ffp = new FirefoxProfile ();
30
+ driver = new FirefoxDriver (ff , ffp , capabilities );
31
+ } else {
33
32
driver = new FirefoxDriver ();
34
33
}
35
34
}
35
+
36
36
@ Test
37
- public void test (){
37
+ public void test () {
38
38
driver .get ("http://lazycoder.io/about.html" );
39
39
Assert .assertEquals (driver .getTitle (), "Lazy Coder Origins" );
40
40
}
41
41
42
42
@ AfterTest
43
- public void testTeardown (){
43
+ public void testTeardown () {
44
44
driver .quit ();
45
45
}
46
46
}
You can’t perform that action at this time.
0 commit comments