Skip to content

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

@t00m

Description

@t00m

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):

  • OS: Ubuntu 20.04
  • Browser: Firefox
  • Python: 3.8
  • Selenium API version: 4.0.0a5
  • geckodriver 0.26.0

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions