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

CICD

parent 97426349
No related branches found
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,8 +85,18 @@ 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:
# OAuth_AccessRequest = s.get(se_auth_url)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment