Skip to content

Commit b8b405f

Browse files
committed
Create negated waitFor methods properly.
1 parent dd44b43 commit b8b405f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/server/src/org/openqa/selenium/server/htmlrunner/ReflectivelyDiscoveredSteps.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ private static ImmutableMap<String, CoreStepFactory> discover() {
161161
}));
162162

163163
factories.put(
164-
"waitFor" + shortName.substring(0, 1).toUpperCase() + shortName.substring(1),
164+
"waitFor" + shortName,
165165
(((locator, value) -> ((selenium, state) -> {
166166
new Wait() {
167167
@Override
@@ -174,7 +174,7 @@ public boolean until() {
174174
}))));
175175

176176
factories.put(
177-
"waitForNot" + shortName.substring(0, 1).toUpperCase() + shortName.substring(1),
177+
"waitFor" + negateName(shortName),
178178
(((locator, value) -> ((selenium, state) -> {
179179
try {
180180
new Wait() {

0 commit comments

Comments
 (0)