Skip to content

Commit 4c5b29f

Browse files
committed
Handle non-breaking spaces when parsing times in the core runner
1 parent aead1f8 commit 4c5b29f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

java/client/src/com/thoughtworks/selenium/webdriven/SeleneseCommand.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ public void setDefaultTimeout(long defaultTimeout) {
5151
}
5252

5353
protected long getTimeout(String timeout) {
54+
// Of course, a non-breaking space doesn't count as whitespace.
55+
timeout = timeout.replace('\u00A0',' ').trim();
5456
return "".equals(timeout) ? defaultTimeout : Long.valueOf(timeout);
5557
}
5658

0 commit comments

Comments
 (0)