This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// put it on top of the file, not in a describe block | |
// it delays protractor actions by 100ms so you can see | |
// what's happening | |
var origFn = browser.driver.controlFlow().execute; | |
browser.driver.controlFlow().execute = function() { | |
var args = arguments; | |
// queue 100ms wait | |
origFn.call(browser.driver.controlFlow(), function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
wget -q --spider http://google.com | |
if [ $? -eq 0 ]; then | |
echo "Online" | |
else | |
echo "Offline" | |
fi |
NewerOlder