@@ -11,7 +11,7 @@ namespace SeleniumDocs.Browsers
11
11
[ EnabledOnOs ( "WINDOWS" ) ]
12
12
public class InternetExplorerTest
13
13
{
14
- private InternetExplorerDriver driver ;
14
+ private InternetExplorerDriver _driver ;
15
15
private string _logLocation ;
16
16
private string _tempPath ;
17
17
@@ -26,7 +26,7 @@ public void Cleanup()
26
26
{
27
27
File . Delete ( _tempPath ) ;
28
28
}
29
- driver . Quit ( ) ;
29
+ _driver . Quit ( ) ;
30
30
}
31
31
32
32
[ TestMethod ]
@@ -35,27 +35,26 @@ public void BasicOptionsWin10()
35
35
var options = new InternetExplorerOptions ( ) ;
36
36
options . AttachToEdgeChrome = true ;
37
37
options . EdgeExecutablePath = GetEdgeLocation ( ) ;
38
- driver = new InternetExplorerDriver ( options ) ;
38
+ _driver = new InternetExplorerDriver ( options ) ;
39
39
}
40
40
41
41
[ TestMethod ]
42
42
public void BasicOptionsWin11 ( )
43
43
{
44
44
var options = new InternetExplorerOptions ( ) ;
45
- driver = new InternetExplorerDriver ( options ) ;
45
+ _driver = new InternetExplorerDriver ( options ) ;
46
46
}
47
47
48
48
[ TestMethod ]
49
- [ Ignore ( "Not implemented" ) ]
50
49
public void LogsToFile ( )
51
50
{
52
51
var service = InternetExplorerDriverService . CreateDefaultService ( ) ;
53
52
service . LogFile = GetLogLocation ( ) ;
54
53
55
- driver = new InternetExplorerDriver ( service ) ;
56
- driver . Quit ( ) ; // Close the Service log file before reading
54
+ _driver = new InternetExplorerDriver ( service ) ;
55
+ _driver . Quit ( ) ; // Close the Service log file before reading
57
56
var lines = File . ReadLines ( GetLogLocation ( ) ) ;
58
- Assert . IsNotNull ( lines . FirstOrDefault ( line => line . Contains ( "geckodriver INFO Listening on " ) ) ) ;
57
+ Assert . IsNotNull ( lines . FirstOrDefault ( line => line . Contains ( "Started InternetExplorerDriver server " ) ) ) ;
59
58
}
60
59
61
60
[ TestMethod ]
@@ -70,7 +69,7 @@ public void LogsToConsole()
70
69
71
70
//service.LogToConsole = true;
72
71
73
- driver = new InternetExplorerDriver ( service ) ;
72
+ _driver = new InternetExplorerDriver ( service ) ;
74
73
Assert . IsTrue ( stringWriter . ToString ( ) . Contains ( "geckodriver INFO Listening on" ) ) ;
75
74
Console . SetOut ( originalOutput ) ;
76
75
stringWriter . Dispose ( ) ;
@@ -84,8 +83,8 @@ public void LogsLevel()
84
83
85
84
service . LoggingLevel = InternetExplorerDriverLogLevel . Warn ;
86
85
87
- driver = new InternetExplorerDriver ( service ) ;
88
- driver . Quit ( ) ; // Close the Service log file before reading
86
+ _driver = new InternetExplorerDriver ( service ) ;
87
+ _driver . Quit ( ) ; // Close the Service log file before reading
89
88
var lines = File . ReadLines ( GetLogLocation ( ) ) ;
90
89
Assert . IsNotNull ( lines . FirstOrDefault ( line => line . Contains ( "Invalid capability setting: timeouts is type null" ) ) ) ;
91
90
}
@@ -97,7 +96,7 @@ public void SupportingFilesLocation()
97
96
98
97
service . LibraryExtractionPath = GetTempDirectory ( ) ;
99
98
100
- driver = new InternetExplorerDriver ( service ) ;
99
+ _driver = new InternetExplorerDriver ( service ) ;
101
100
Assert . IsTrue ( File . Exists ( GetTempDirectory ( ) + "/IEDriver.tmp" ) ) ;
102
101
}
103
102
0 commit comments