• 12-10-2019, 12:47:31
    #1
    Selenium bir anda çalışmamaya başladı hiç tarayıcıyı bile başlatmıyor 3 farklı pc den denedim olmuyor
    Sabah yazdığım proje bile çalışmaz oldu sizde de öyle mi
    Python da chrome ve firefoxda denedim ikiside çalışmıyor
  • 12-10-2019, 12:54:34
    #2
    Böyle bir sorun yok şuan benim localimde
  • 12-10-2019, 13:22:46
    #3
    Bende de sorun yok. Bu tür hatalar genellikle driver sürümünün pc de kurulu browserden eski olmasından kaynaklanıyor. Bazı browserlar otomatik güncelleniyor, driver sürümü eski kalıyor. Tarayıcı başlatmaya çalışırken, try catch ile exception yakalayın. Session ve driver sürümüyle alakalı exception fırlatırsa en güncel driveri indirip deneyin.
  • 12-10-2019, 13:52:58
    #4
    pr1d3 adlı üyeden alıntı: mesajı görüntüle
    Bende de sorun yok. Bu tür hatalar genellikle driver sürümünün pc de kurulu browserden eski olmasından kaynaklanıyor. Bazı browserlar otomatik güncelleniyor, driver sürümü eski kalıyor. Tarayıcı başlatmaya çalışırken, try catch ile exception yakalayın. Session ve driver sürümüyle alakalı exception fırlatırsa en güncel driveri indirip deneyin.
    Traceback (most recent call last):
    File "xml.py", line 1, in <module>
    from selenium import webdriver
    File "C:UsersbteksAppDataLocalProgramsPythonPython37-32libsite-packagesseleniumwebdriver__init__.py", line 18, in <module>
    from .firefox.webdriver import WebDriver as Firefox # noqa
    File "C:UsersbteksAppDataLocalProgramsPythonPython37-32libsite-packagesseleniumwebdriverfirefoxwebdriver.py", line 33, in <module>
    from .firefox_profile import FirefoxProfile
    File "C:UsersbteksAppDataLocalProgramsPythonPython37-32libsite-packagesseleniumwebdriverfirefoxfirefox_profile.py", line 35, in <module>
    from xml.dom import minidom
    File "C:UsersbteksDesktopxml.py", line 9, in <module>
    driver=webdriver.Chrome(driver_path)
    AttributeError: module 'selenium.webdriver' has no attribute 'Chrome'
    şeklinde hata veriyor kodumda bu
    from selenium import webdriver
    from selenium.webdriver.common.keys import Keys
    from selenium.webdriver.common.action_chains import ActionChains
    from selenium.common.exceptions import NoSuchElementException
    from selenium.webdriver.chrome.options import Options
    import time
    
    driver_path = "C:\\Users\\bteks\\Desktop\\chromedriver.exe"
    driver=webdriver.Chrome(driver_path)





    Yardımcı olabilecek kimse yok mudur ?? İlk defa python kurulan bilgisayara selenium kurdum yine aynı
  • 16-10-2019, 02:02:22
    #5
    bir kaç çözüm görünüyor. deneyerek bir çözüm üretebilirsiniz gibi.

    Alıntı
    You can delete the file you recently created. I am facing same issue when i come to this thread and nothing worked for me. I just deleted my recent file and everything works fine :-)
    Before creating new python file selenium work fine. it start showing this error when i create new python file in same folder. When i delete the file , everything work fine as before.
    Alıntı
    I was facing the same error AttributeError: module 'selenium.webdriver' has no attribute 'Chrome' . Earlier I just copied and pasted the selenium library in my venv libs .But the copy was not made properly. That's why it was not working well. Since I receive this error , I removed the selenium package and installed it by pip using the command pip install selenium.It worked for me .
    So What I came up to is this issue is regarding the installation of selenium.if it is not working in your code also, go and try removing the package or just uninstalling the package and install it again.
  • 16-10-2019, 03:50:36
    #6
    Yazmayı unuttum xml socket gibi dosya adları verirseniz python sorun yaratıyor