Skip to content

Commit 3406391

Browse files
committed
Rename all occurrences to MultiChoiceBox
1 parent 4692296 commit 3406391

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/main/java/aquality/selenium/elements/ElementType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public enum ElementType {
66
BUTTON(IButton.class),
77
CHECKBOX(ICheckBox.class),
88
COMBOBOX(IComboBox.class),
9-
MULTICHOICECOMBOBOX(IMultiChoiceBox.class),
9+
MULTICHOICEBOX(IMultiChoiceBox.class),
1010
LABEL(ILabel.class),
1111
LINK(ILink.class),
1212
RADIOBUTTON(IRadioButton.class),

src/main/java/aquality/selenium/elements/interfaces/IElementFactory.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,26 +81,26 @@ default IComboBox getComboBox(By locator, String name, ElementState state) {
8181
}
8282

8383
/**
84-
* Creates element that implements IMultiChoiceComboBox interface.
84+
* Creates element that implements IMultiChoiceBox interface.
8585
*
8686
* @param locator Element locator
8787
* @param name Element name
88-
* @return Instance of element that implements IMultiChoiceComboBox interface
88+
* @return Instance of element that implements IMultiChoiceBox interface
8989
*/
90-
default IMultiChoiceBox getMultiChoiceComboBox(By locator, String name) {
91-
return getMultiChoiceComboBox(locator, name, ElementState.DISPLAYED);
90+
default IMultiChoiceBox getMultiChoiceBox(By locator, String name) {
91+
return getMultiChoiceBox(locator, name, ElementState.DISPLAYED);
9292
}
9393

9494
/**
95-
* Creates element that implements IMultiChoiceComboBox interface.
95+
* Creates element that implements IMultiChoiceBox interface.
9696
*
9797
* @param locator Element locator
9898
* @param name Element name
9999
* @param state Element state
100-
* @return Instance of element that implements IMultiChoiceComboBox interface
100+
* @return Instance of element that implements IMultiChoiceBox interface
101101
*/
102-
default IMultiChoiceBox getMultiChoiceComboBox(By locator, String name, ElementState state) {
103-
return get(ElementType.MULTICHOICECOMBOBOX, locator, name, state);
102+
default IMultiChoiceBox getMultiChoiceBox(By locator, String name, ElementState state) {
103+
return get(ElementType.MULTICHOICEBOX, locator, name, state);
104104
}
105105

106106
/**

src/test/java/w3schools/forms/SelectMultipleForm.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
public class SelectMultipleForm extends Form {
1919

20-
private final IMultiChoiceBox cbxCars = getElementFactory().getMultiChoiceComboBox(By.id("cars"), "Cars");
20+
private final IMultiChoiceBox cbxCars = getElementFactory().getMultiChoiceBox(By.id("cars"), "Cars");
2121
private final IButton btnSubmit = getElementFactory().getButton(By.cssSelector("input[type='submit']"), "Submit");
2222
private final ITextBox txbResult = getElementFactory().getTextBox(By.cssSelector(".w3-large"), "Result");
2323
private final IButton btnAcceptCookies = getElementFactory().getButton(By.id("accept-choices"), "Accept cookies");

0 commit comments

Comments
 (0)