diff --git a/src/main/java/nl/hsac/fitnesse/fixture/slim/web/BrowserTest.java b/src/main/java/nl/hsac/fitnesse/fixture/slim/web/BrowserTest.java
index <HASH>..<HASH> 100644
--- a/src/main/java/nl/hsac/fitnesse/fixture/slim/web/BrowserTest.java
+++ b/src/main/java/nl/hsac/fitnesse/fixture/slim/web/BrowserTest.java
@@ -1392,6 +1392,10 @@ public class BrowserTest extends SlimFixture {
         if (element != null) {
             scrollIfNotOnScreen(element);
             result = element.getText();
+            if (result != null) {
+                // safari driver does not trim
+                result = result.trim();
+            }
         }
         return result;
     }
Safari does not trim text retrieved from element, so we do it to get consistent behavior accross browsers