File tree Expand file tree Collapse file tree 6 files changed +13
-25
lines changed
test/org/openqa/selenium/testing/drivers Expand file tree Collapse file tree 6 files changed +13
-25
lines changed Original file line number Diff line number Diff line change 20
20
21
21
import org .openqa .selenium .Capabilities ;
22
22
import org .openqa .selenium .OutputType ;
23
- import org .openqa .selenium .TakesScreenshot ;
24
23
import org .openqa .selenium .WebDriver ;
25
24
import org .openqa .selenium .WebDriverException ;
26
25
import org .openqa .selenium .remote .DriverCommand ;
95
94
*
96
95
* @see ChromeDriverService#createDefaultService
97
96
*/
98
- public class ChromeDriver extends RemoteWebDriver implements TakesScreenshot {
97
+ public class ChromeDriver extends RemoteWebDriver {
99
98
100
99
/**
101
100
* Creates a new ChromeDriver using the {@link ChromeDriverService#createDefaultService default}
Original file line number Diff line number Diff line change 29
29
import com .google .common .collect .Maps ;
30
30
import com .google .common .collect .Sets ;
31
31
32
- import org .openqa .selenium .Beta ;
33
32
import org .openqa .selenium .Capabilities ;
34
33
import org .openqa .selenium .OutputType ;
35
34
import org .openqa .selenium .Platform ;
36
35
import org .openqa .selenium .Proxy ;
37
- import org .openqa .selenium .TakesScreenshot ;
38
36
import org .openqa .selenium .WebDriverException ;
39
37
import org .openqa .selenium .browserlaunchers .Proxies ;
40
38
import org .openqa .selenium .firefox .internal .MarionetteConnection ;
58
56
59
57
import java .io .File ;
60
58
import java .io .IOException ;
61
- import java .util .Map ;
62
59
import java .util .Set ;
63
60
import java .util .concurrent .TimeUnit ;
64
61
74
71
* When the driver starts, it will make a copy of the profile it is using, rather than using that
75
72
* profile directly. This allows multiple instances of firefox to be started.
76
73
*/
77
- public class FirefoxDriver extends RemoteWebDriver implements TakesScreenshot , Killable {
74
+ public class FirefoxDriver extends RemoteWebDriver implements Killable {
78
75
public static final String BINARY = "firefox_binary" ;
79
76
public static final String PROFILE = "firefox_profile" ;
80
77
Original file line number Diff line number Diff line change 17
17
18
18
package org .openqa .selenium .ie ;
19
19
20
+ import static org .openqa .selenium .remote .CapabilityType .PROXY ;
21
+
20
22
import com .google .common .base .Throwables ;
21
23
22
24
import org .openqa .selenium .Capabilities ;
23
25
import org .openqa .selenium .OutputType ;
24
26
import org .openqa .selenium .Platform ;
25
- import org .openqa .selenium .TakesScreenshot ;
26
27
import org .openqa .selenium .WebDriverException ;
27
28
import org .openqa .selenium .browserlaunchers .WindowsProxyManager ;
28
29
import org .openqa .selenium .remote .CapabilityType ;
34
35
35
36
import java .io .File ;
36
37
37
- import static org .openqa .selenium .remote .CapabilityType .PROXY ;
38
-
39
- public class InternetExplorerDriver extends RemoteWebDriver implements TakesScreenshot {
38
+ public class InternetExplorerDriver extends RemoteWebDriver {
40
39
41
40
/**
42
41
* Capability that defines whether to ignore the browser zoom level or not.
Original file line number Diff line number Diff line change 17
17
18
18
package org .openqa .selenium .safari ;
19
19
20
- import com .google .common .base .Optional ;
21
-
22
- import org .json .JSONException ;
23
20
import org .openqa .selenium .Capabilities ;
24
21
import org .openqa .selenium .OutputType ;
25
- import org .openqa .selenium .TakesScreenshot ;
26
22
import org .openqa .selenium .WebDriverException ;
27
23
import org .openqa .selenium .remote .DesiredCapabilities ;
28
24
import org .openqa .selenium .remote .DriverCommand ;
29
25
import org .openqa .selenium .remote .FileDetector ;
30
26
import org .openqa .selenium .remote .RemoteWebDriver ;
31
27
32
- import java .io .File ;
33
28
import java .io .IOException ;
34
29
35
30
/**
38
33
*
39
34
* This driver can be configured using the {@link SafariOptions} class.
40
35
*/
41
- public class SafariDriver extends RemoteWebDriver implements TakesScreenshot {
36
+ public class SafariDriver extends RemoteWebDriver {
42
37
43
38
/**
44
39
* Initializes a new SafariDriver} class with default {@link SafariOptions}.
Original file line number Diff line number Diff line change 17
17
18
18
package org .openqa .selenium .testing .drivers ;
19
19
20
- import java .net .MalformedURLException ;
21
- import java .net .URL ;
20
+ import com .google .common .base .Preconditions ;
21
+ import com .google .common .base .Strings ;
22
+ import com .google .common .base .Throwables ;
22
23
23
24
import org .openqa .selenium .Capabilities ;
24
25
import org .openqa .selenium .OutputType ;
25
26
import org .openqa .selenium .Platform ;
26
- import org .openqa .selenium .TakesScreenshot ;
27
27
import org .openqa .selenium .ie .InternetExplorerDriver ;
28
28
import org .openqa .selenium .remote .DesiredCapabilities ;
29
29
import org .openqa .selenium .remote .DriverCommand ;
30
30
import org .openqa .selenium .remote .RemoteWebDriver ;
31
31
32
- import com .google .common .base .Preconditions ;
33
- import com .google .common .base .Strings ;
34
- import com .google .common .base .Throwables ;
32
+ import java .net .MalformedURLException ;
33
+ import java .net .URL ;
35
34
36
- public class SauceDriver extends RemoteWebDriver implements TakesScreenshot {
35
+ public class SauceDriver extends RemoteWebDriver {
37
36
38
37
private static final String SAUCE_JOB_NAME_ENV_NAME = "SAUCE_JOB_NAME" ;
39
38
private static final String SELENIUM_VERSION_ENV_NAME = "SAUCE_SELENIUM_VERSION" ;
Original file line number Diff line number Diff line change 21
21
22
22
import org .openqa .selenium .Capabilities ;
23
23
import org .openqa .selenium .OutputType ;
24
- import org .openqa .selenium .TakesScreenshot ;
25
24
import org .openqa .selenium .chrome .ChromeDriverService ;
26
25
import org .openqa .selenium .chrome .ChromeOptions ;
27
26
import org .openqa .selenium .remote .DesiredCapabilities ;
37
36
* entire test suite. We do not use {@link org.openqa.selenium.chrome.ChromeDriver} since that starts and stops the service
38
37
* with each instance (and that is too expensive for our purposes).
39
38
*/
40
- public class TestChromeDriver extends RemoteWebDriver implements TakesScreenshot {
39
+ public class TestChromeDriver extends RemoteWebDriver {
41
40
private static ChromeDriverService service ;
42
41
43
42
public TestChromeDriver () {
You can’t perform that action at this time.
0 commit comments