t00m / Basico

SAP Notes manager for SAP Consultants
GNU General Public License v3.0
3 stars 2 forks source link

[basico-0.4] Profile not found for Selenium Firefox webdriver #1

Open t00m opened 4 years ago

t00m commented 4 years ago

Describe the bug Basico can't launch Firefox with a specific profile

To Reproduce Steps to reproduce the behavior:

  1. Open Basico
  2. Click on Add SAP Note
  3. Type SAP Note Nuber
  4. Click on Download

Expected behavior Open a new Firefox window to login in SAP Launchpad Portal and download the SAP Note

Error

Traceback (most recent call last):
  File "/home/t00m/.local/lib/python3.8/site-packages/basico-0.4-py3.8.egg/basico/services/srv_callbacks.py", line 462, in sapnote_import_from_launchpad
    driver = webdriver.open()
  File "/home/t00m/.local/lib/python3.8/site-packages/basico-0.4-py3.8.egg/basico/services/srv_driver.py", line 98, in open
    FIREFOX_PROFILE = webdriver.FirefoxProfile(FIREFOX_PROFILE_DIR)
  File "/home/t00m/.local/lib/python3.8/site-packages/selenium-4.0.0a5-py3.8.egg/selenium/webdriver/firefox/firefox_profile.py", line 64, in __init__
    with open(os.path.join(os.path.dirname(__file__),
FileNotFoundError: [Errno 2] No such file or directory: '/home/t00m/.local/lib/python3.8/site-packages/selenium-4.0.0a5-py3.8.egg/selenium/webdriver/firefox/webdriver_prefs.json'

Desktop (please complete the following information):

t00m commented 4 years ago

Some refs: