3
ile çalışmaz, selenyum kullanarak firefox'un önceki sürümü ile mükemmel bir şekilde çalıştıran bir bot yaptım ama şimdi firefox'u güncelledikten sonra, gerçekten anlamadığım küçük bir sorun var. Hata i almak oluyor buradaFirefox'ın son sürümü, selenyum
def init():
firefox_profile = webdriver.FirefoxProfile()
firefox_profile.set_preference("browser.privatebrowsing.autostart", True)
driver = webdriver.Firefox(firefox_profile=firefox_profile)
driver.set_window_size(480, 320)
driver.set_window_position(1100, 0)
return (driver)
ve:
Traceback (most recent call last):
File "/Users/fantasim/ecole42/devPython/automatic_twitter/./following.py", line 85, in <module>
driver = connexion.init()
File "/Users/fantasim/ecole42/devPython/automatic_twitter/connexion.py", line 10, in init
driver = webdriver.Firefox(firefox_profile)
File "/Library/Python/2.7/site-packages/selenium-2.48.0-py2.7.egg/selenium/webdriver/firefox/webdriver.py", line 77, in __init__
self.binary, timeout),
File "/Library/Python/2.7/site-packages/selenium-2.48.0-py2.7.egg/selenium/webdriver/firefox/extension_connection.py", line 49, in __init__
self.binary.launch_browser(self.profile)
File "/Library/Python/2.7/site-packages/selenium-2.48.0-py2.7.egg/selenium/webdriver/firefox/firefox_binary.py", line 68, in launch_browser
self._wait_until_connectable()
File "/Library/Python/2.7/site-packages/selenium-2.48.0-py2.7.egg/selenium/webdriver/firefox/firefox_binary.py", line 103, in _wait_until_connectable
raise WebDriverException("Can't load the profile. Profile "
selenium.common.exceptions.WebDriverException: Message: Can't load the profile. Profile Dir: %s If you specified a log_file in the FirefoxBinary constructor, check it for details
u bir fikrin var burada benim kodudur? Şu anda 2.53.1 - en son sürüme
thank en
Firefox güncellemesinin başvurmak istediğiniz kullanıcı profilini sildiğini tahmin ediyorum. yeniden yap. – n1c9
Tamam ama bu profili nasıl sürücüye atadım? – Fantasim