# allow up to 121 seconds for torbrowser to start and to make the first connection through tor
# allow up to 165 seconds for torbrowser to start and to make the first connection through tor
for i in$(seq 1 11);do
for i in$(seq 1 14);do
sleep 5 ;sleep$i
sleep 5 ;sleep$i
update_screenshot
update_screenshot
TOR_RUNNING=$(gocr $WORKSPACE/screenshot.png 2>/dev/null | egrep "(Search securely|Tor Is NOT all you need to browse|There are many ways you can help)"||true)
TOR_RUNNING=$(gocr $WORKSPACE/screenshot.png 2>/dev/null | egrep "(Search securely|Tor Is NOT all you need to browse|There are many ways you can help)"||true)