Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firefox gecko driver cannot start with python3 and new selenium2library #878

Closed
chaussen opened this issue Sep 1, 2017 · 5 comments
Closed

Comments

@chaussen
Copy link

chaussen commented Sep 1, 2017

ARCH LINUX 4.12.8-2-ARCH
geckodriver 0.18.0
firefox 55.0.3
python 3.6.2
Robot Framework 3.0.2 (Python 3.6.2 on linux)
robotframework-selenium2library (3.0.0a3)

traceback:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/SeleniumLibrary/__init__.py", line 266, in run_keyword
    return DynamicCore.run_keyword(self, name, args, kwargs)
  File "/usr/lib/python3.6/site-packages/SeleniumLibrary/base/robotlibcore.py", line 97, in run_keyword
    return self.keywords[name](*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/SeleniumLibrary/keywords/browsermanagement.py", line 138, in open_browser
    ff_profile_dir, remote_url)
  File "/usr/lib/python3.6/site-packages/SeleniumLibrary/keywords/browsermanagement.py", line 596, in _make_browser
    browser = creation_func(remote, desired_capabilities, profile_dir)
  File "/usr/lib/python3.6/site-packages/SeleniumLibrary/keywords/browsermanagement.py", line 606, in _make_ff
    profile = webdriver.FirefoxProfile(profile_dir)
  File "/usr/lib/python3.6/site-packages/selenium/webdriver/firefox/firefox_profile.py", line 78, in __init__
    ignore=shutil.ignore_patterns("parent.lock", "lock", ".parentlock"))
  File "/usr/lib/python3.6/shutil.py", line 309, in copytree
    names = os.listdir(src)

cheers,
john

@aaltat
Copy link
Contributor

aaltat commented Sep 1, 2017

Thanks from the report. Could you please tell how you use Open Browser keyword and was the Selenium version you are using?

@chaussen
Copy link
Author

chaussen commented Sep 1, 2017

selenium (3.5.0)
Open Browser ${URL} browser=ff

@pekkaklarck
Copy link
Member

  1. What's the actual exception you got? The included traceback shows where the exception occurs but not what the exception is.

  2. Could you test with other Python 3 versions than 3.6?

  3. Could you test this with Selenium only?

@aaltat
Copy link
Contributor

aaltat commented Sep 1, 2017

I can reproduce this problem with Python 3.5 Selenium2Library. Need to think what causes the problem.

@aaltat
Copy link
Contributor

aaltat commented Sep 1, 2017

Fixed in #881

@aaltat aaltat closed this as completed Sep 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants