from os import getenv,environ
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
if getenv('OS') != None :
homedir = getenv('USERPROFILE').replace('\\', '/')
chromedriver = 'chromedriver.exe'
else:
homedir = getenv('HOME')
chromedriver = 'chromedriver'
options = Options()
driver = webdriver.Chrome(homedir + '/' + 'Downloads' + '/' + chromedriver, options = options)
driver.get(url)
|& tee /tmp/a
vi !$
ps axww
1460 ? Sl 0:00 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --log-error=/var/log/mariadb/mariadb.log --pid-file=/var/run/mariadb/mariadb.pid --socket=/var/lib/mysql/mysql.sock
2388 ? S 0:00 cpio --extract --verbose --quiet --to-stdout -- lib/dracut/build-parameter.txt usr/lib/dracut/build-parameter.txt
2389 pts/0 R+ 0:00 ps axww
docker export [OPTIONS] CONTAINER
docker import [OPTIONS] FILE
RESOURCE_NAME=${1:-TEST}
AGENT_NAME=$3
if [[ !-z $AGENT_NAME ]]; then
QUERY=".[]|select(.type=\"agent\")|select(.name|test(\"$AGENT_NAME.\"))|.name"
OPTIONS='-cr'
echo 'Agent: ' $AGENT_NAME
else
QUERY='.[]|select(.type="agent)|.name"'
OPTIONS='-cr'
echo 'Agents:'
fi
DATA=$(jq $OPTIONS $QUERY < $TMP_FILE)
https://github.com/sergueik/powershell_selenium