Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Commit c7961e0

Browse files
committed
Code refactoring
1 parent cf75328 commit c7961e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/github/markusbernhardt/seleniumlibrary/keywords/SelectElement.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public void listShouldHaveNoSelections(String locator) {
142142
logging.info(String.format("Verifying list '%s' has no selection.", locator));
143143

144144
List<WebElement> options = getSelectListOptionsSelected(locator);
145-
if (options != null) {
145+
if (!options.isEmpty()) {
146146
List<String> selectedLabels = getLabelsForOptions(options);
147147
String items = Python.join(" | ", selectedLabels);
148148
throw new SeleniumLibraryNonFatalException(String.format(

0 commit comments

Comments
 (0)