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'
2 odpowiedzi
+ 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 ;)
0
ERROR - > driver = selenium.webdriver.Firefox()
AttributeError: module 'selenium' has no attribute 'webdriver'
Now What??