0

Python - Need Help

import selenium driver = selenium.webdriver.Firefox() driver.get('https://www.instagram.com/accounts/edit/?hl=en') id_box = driver.find_element_by_id('pepUsername') id_box.send_keys('ahfuifkhiwf') driver.close() ERROR -> driver = selenium.webdriver.Firefox() AttributeError: module 'selenium' has no attribute 'webdriver'

11th Dec 2018, 6:52 PM
MyMomAteMyCat123
MyMomAteMyCat123 - avatar
2 Réponses
+ 1
Hello 1. To change the driver just use Firefox instead of Chrome 2. But it will not solve your error 3. That error says: "i do not know sth like webdriver" 4. This is because after importing selenium you should put: driver = selenium.webdriver.Chrome() Or any other driver you want ;)
11th Dec 2018, 7:23 PM
Ja Mi
Ja Mi - avatar
0
ERROR - > driver = selenium.webdriver.Firefox() AttributeError: module 'selenium' has no attribute 'webdriver' Now What??
11th Dec 2018, 7:59 PM
MyMomAteMyCat123
MyMomAteMyCat123 - avatar