File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -18,4 +18,13 @@ public static RemoteWebDriver get() {
18
18
public static void set (RemoteWebDriver instance ) {
19
19
rwd .set (instance );
20
20
}
21
+
22
+ public static void pause (long i ) {
23
+ try {
24
+ Thread .sleep (i );
25
+ } catch (InterruptedException e ) {
26
+ log .error ("InterruptedException in pause()" );
27
+ log .error (e .getMessage ());
28
+ }
29
+ }
21
30
}
Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ public class Configurator {
29
29
try {
30
30
defaults .load (Configurator .class .getResourceAsStream (DEFAULT_PROPERTIES_RESOURCE ));
31
31
} catch (IOException e ) {
32
- throw new ConfigurationError (e .getMessage (), e );
32
+ // throw new ConfigurationError(e.getMessage(), e);
33
+ log .error ("ConfigurationError: " + e .getMessage ());
33
34
}
34
35
if (null != propFileName ) {
35
36
File propFile = new File (propFileName );
@@ -39,8 +40,10 @@ public class Configurator {
39
40
props .load (new FileInputStream (propFile ));
40
41
initialize (props );
41
42
} catch (IOException e ) {
42
- throw new ConfigurationError ("Error while loading configuration file: " + propFile .getAbsolutePath (),
43
- e );
43
+ // throw new ConfigurationError("Error while loading configuration file: " + propFile.getAbsolutePath(),
44
+ // e);
45
+ log .error ("Error while loading configuration file: " + propFile .getAbsolutePath ());
46
+ log .error ("ConfigurationError: " + e .getMessage ());
44
47
}
45
48
}
46
49
}
You can’t perform that action at this time.
0 commit comments