Search code examples
pythonseleniumgoogle-chromeselenium-chromedrivercallable

How to address 'module' object not callable in python selenium


I have recently got a problem while working with selenium for making a Twitter bot. The code is:

from selenium import webdriver
from selenium.webdriver.chrome.options import Options

option = Options()
option.add_argument("start-maximized")
driver = webdriver.chrome(options=option)

driver.get("http://twitter.com/login")

The Error I have been getting is:

'module' object is not callable

How can I fix this ??


Solution

  • Instead of chrome() you need to call Chome()

    Your effective line of code will be:

    driver = webdriver.Chrome(options=option)
    

    References

    You can find a couple of relevant detailed discussions in: