diff --git a/pdf2htmlEX/test/runLocalBrowserTests b/pdf2htmlEX/test/runLocalBrowserTests
index f27cae2..2338c39 100755
--- a/pdf2htmlEX/test/runLocalBrowserTests
+++ b/pdf2htmlEX/test/runLocalBrowserTests
@@ -18,6 +18,9 @@ ps -ef | grep -v grep | grep Xvfb
echo "-----------------------------------------------------------"
echo ""
+# add an explicit delay to allow Xvfb to stablize
+sleep 2
+
# Now we tell the test drivers about this display
# (Note: you MUST not specify the host!)
#
@@ -35,6 +38,9 @@ export returnCode=$?
echo "-----------------------------------------------------------"
echo ""
+# add an explicit delay to allow Xvfb to stablize
+sleep 2
+
# Now we shutdown the virtual frame buffer
#
/sbin/start-stop-daemon \