@@ -2,9 +2,6 @@ package org.scalatestplus.selenium
2
2
3
3
import org .scalatest ._
4
4
import SharedHelpers .EventRecordingReporter
5
- import org .openqa .selenium .firefox .{FirefoxDriver , FirefoxOptions }
6
- import org .openqa .selenium .chrome .ChromeDriver
7
- import org .openqa .selenium .ie .InternetExplorerDriver
8
5
import org .scalatest .tagobjects .Slow
9
6
10
7
class DriverSpec extends funspec.AnyFunSpec {
@@ -34,6 +31,8 @@ class DriverSpec extends funspec.AnyFunSpec {
34
31
35
32
class GoogleSearchSpecWithChrome extends GoogleSearchSpec with Chrome
36
33
class GoogleSearchSpecWithFirefox extends GoogleSearchSpec with Firefox
34
+ class GoogleSearchSpecWithInternetExplorer extends GoogleSearchSpec with InternetExplorer
35
+ class GoogleSearchSpecWithSafari extends GoogleSearchSpec with Safari
37
36
class GoogleSearchSpecWithEdge extends GoogleSearchSpec with Edge
38
37
39
38
it(" should work with Chrome" , Slow ) {
@@ -76,7 +75,7 @@ class DriverSpec extends funspec.AnyFunSpec {
76
75
77
76
it(" should work with Internet Explorer" , Slow ) {
78
77
// Cancel when Internet Explorer is not available
79
- val s = try new GoogleSearchSpecWithFirefox catch { case e : Throwable => cancel(e) }
78
+ val s = try new GoogleSearchSpecWithInternetExplorer catch { case e : Throwable => cancel(e) }
80
79
val rep = new EventRecordingReporter
81
80
s.run(None , Args (reporter = rep))
82
81
val scopeOpenedList = rep.scopeOpenedEventsReceived
@@ -95,7 +94,7 @@ class DriverSpec extends funspec.AnyFunSpec {
95
94
96
95
it(" should work with Safari" , Slow ) {
97
96
// Cancel when Safari is not available
98
- val s = try new GoogleSearchSpecWithFirefox catch { case e : Throwable => cancel(e) }
97
+ val s = try new GoogleSearchSpecWithSafari catch { case e : Throwable => cancel(e) }
99
98
val rep = new EventRecordingReporter
100
99
s.run(None , Args (reporter = rep))
101
100
val scopeOpenedList = rep.scopeOpenedEventsReceived
0 commit comments