Skip to content

Commit 36a9140

Browse files
FedericoQuarinAuDuarte
authored andcommitted
feat: add getSelection method to ComboBoxPw
1 parent 3315707 commit 36a9140

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/main/java/in/virit/mopo/ComboBoxPw.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,14 @@ public Locator openDropDown() {
8787
root.locator("#toggleButton").click();
8888
return selectionDropdown();
8989
}
90+
91+
/**
92+
* Returns the selected value for the ComboBox
93+
*
94+
* @return the selected value
95+
*/
96+
public String getSelection() {
97+
return root.locator("input").inputValue();
98+
}
9099

91100
}

0 commit comments

Comments
 (0)