Skip to content

Commit 9af45cb

Browse files
committed
4911_radioButtonsTestsRefCommentsFix
1 parent 49c0ac7 commit 9af45cb

File tree

1 file changed

+2
-3
lines changed
  • jdi-light-angular/src/main/java/com/epam/jdi/light/angular/elements/complex/radiobuttons

1 file changed

+2
-3
lines changed

jdi-light-angular/src/main/java/com/epam/jdi/light/angular/elements/complex/radiobuttons/RadioGroup.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import com.epam.jdi.light.elements.base.UIListBase;
77
import java.util.List;
88
import java.util.stream.Collectors;
9-
import org.openqa.selenium.By;
109

1110
/**
1211
* To see an example of RadioButtons web element please visit https://material.angular.io/components/radio/overview.
@@ -16,7 +15,7 @@ public class RadioGroup extends UIListBase<UISelectAssert<RadioGroupAssert, Radi
1615

1716
@JDIAction("Click '{name}' radio button with value '{0}'")
1817
public void click(String value) {
19-
getRadioButtonByValue(value).find(By.cssSelector(".mdc-form-field")).click();
18+
getRadioButtonByValue(value).click();
2019
}
2120

2221
@JDIAction("'{name}' radio button with value '{0}' is checked")
@@ -35,7 +34,7 @@ public RadioButton getRadioButtonByValue(String value) {
3534
return radioButton;
3635
}
3736

38-
@JDIAction("Get radio-button by value {0}")
37+
@JDIAction("Get '{name}' checked radio-button")
3938
public RadioButton getCheckedRadioButton() {
4039
RadioButton radioButton = null;
4140
for (RadioButton e : radioButtons()) {

0 commit comments

Comments
 (0)