File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
jdi-light-material-ui/src/main/java/com/epam/jdi/light/material/elements/feedback/progress Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 9
9
import com .epam .jdi .light .material .asserts .feedback .ProgressAssert ;
10
10
11
11
import java .lang .reflect .Field ;
12
- import java .util .NoSuchElementException ;
13
12
13
+ import static com .epam .jdi .light .common .Exceptions .runtimeException ;
14
14
import static com .epam .jdi .light .driver .WebDriverByUtils .NAME_TO_LOCATOR ;
15
15
import static com .epam .jdi .light .elements .init .UIFactory .$ ;
16
16
import static com .epam .jdi .light .elements .pageobjects .annotations .objects .FillFromAnnotationRules .fieldHasAnnotation ;
@@ -49,15 +49,13 @@ public Label label() {
49
49
* Gets the current value of progress.
50
50
*
51
51
* @return current progress value as {@code int}
52
- * @throws NoSuchElementException if 'value' attribute doesn't exist
53
- * (i.e. the progress is indeterminate)
54
52
*/
55
53
@ JDIAction ("Get '{name}' value now" )
56
54
public int getValueNow () {
57
55
if (isDeterminate ()) {
58
56
return Integer .parseInt (core ().attr ("aria-valuenow" ));
59
57
}
60
- throw new NoSuchElementException ("No exist 'value' attribute" );
58
+ throw runtimeException ("No exist 'value' attribute" );
61
59
}
62
60
63
61
/**
You can’t perform that action at this time.
0 commit comments