File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
jdi-light-vuetify/src/main/java/com/epam/jdi/light/vuetify/elements/complex Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 8
8
import com .epam .jdi .light .vuetify .elements .common .VuetifyButton ;
9
9
import com .epam .jdi .light .vuetify .interfaces .HasTheme ;
10
10
11
+ import static com .epam .jdi .light .common .Exceptions .runtimeException ;
11
12
import static org .openqa .selenium .Keys .ESCAPE ;
12
13
13
14
/**
@@ -79,7 +80,7 @@ public void close() {
79
80
dialogWindow ().focus ();
80
81
press (ESCAPE );
81
82
} else {
82
- throw new RuntimeException ("Dialog cannot be closed by pressing esc key" );
83
+ throw runtimeException ("Dialog cannot be closed by pressing esc key" );
83
84
}
84
85
}
85
86
Original file line number Diff line number Diff line change 5
5
import com .epam .jdi .light .vuetify .asserts .bars .AppBarAssert ;
6
6
import com .epam .jdi .light .vuetify .elements .common .Image ;
7
7
8
+ import static com .epam .jdi .light .common .Exceptions .runtimeException ;
8
9
import static com .epam .jdi .light .driver .WebDriverFactory .jsExecute ;
9
10
10
11
/**
@@ -33,7 +34,7 @@ public Image backgroundImage() {
33
34
if (hasBackgroundImage ()) {
34
35
return new Image ().setCore (Image .class , core ().find (IMAGE_LOCATOR ));
35
36
} else {
36
- throw new RuntimeException ("Element doesn't have image" );
37
+ throw runtimeException ("Element doesn't have image" );
37
38
}
38
39
}
39
40
You can’t perform that action at this time.
0 commit comments