Skip to content
Snippets Groups Projects
Commit f305f38e authored by tuhe's avatar tuhe
Browse files

CICD

parent 97426349
Branches
No related tags found
No related merge requests found
Pipeline #8686 failed
......@@ -10,13 +10,13 @@ before_script:
# - export DISPLAY=:2
# - Xvfb $DISPLAY -ac &
- export GECKO_DRIVER_VERSION='v0.24.0'
- wget https://github.com/mozilla/geckodriver/releases/download/$GECKO_DRIVER_VERSION/geckodriver-$GECKO_DRIVER_VERSION-linux64.tar.gz
- tar -xvzf geckodriver-$GECKO_DRIVER_VERSION-linux64.tar.gz
- rm geckodriver-$GECKO_DRIVER_VERSION-linux64.tar.gz
- chmod +x geckodriver
- cp geckodriver /usr/local/bin/
- apt install firefox-geckodriver
# - export GECKO_DRIVER_VERSION='v0.31.0'
# - wget https://github.com/mozilla/geckodriver/releases/download/$GECKO_DRIVER_VERSION/geckodriver-$GECKO_DRIVER_VERSION-linux64.tar.gz
# - tar -xvzf geckodriver-$GECKO_DRIVER_VERSION-linux64.tar.gz
# - rm geckodriver-$GECKO_DRIVER_VERSION-linux64.tar.gz
# - chmod +x geckodriver
# - cp geckodriver /usr/local/bin/
# - 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )'
##
......
......@@ -85,6 +85,16 @@ class LearnConfig:
se_auth_url = se_flow_manager.get_authorization_endpoint(state)
print(se_auth_url)
from webdriver_manager.firefox import GeckoDriverManager
import selenium
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
# options = selenium.webdriver.firefox.options.Options()
from selenium.webdriver.firefox.options import Options
options = Options()
options.log.level = "trace"
d = DesiredCapabilities.FIREFOX
d['loggingPrefs'] = {'browser': 'ALL'}
driver = webdriver.Firefox(options=options, desired_capabilities=d)
driver = webdriver.Firefox()
# with requests.session() as s:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment