from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
class Twitter:
def __init__(self,mail):
self.mail = mail
self.driver = webdriver.Firefox
def login(self):
driver = self.driver
driver.get("https://www.instagram.com/")
time.sleep(10)
错误:驱动程序:WebDriver 在未绑定的方法调用中,参数“ url”没有值
试图破坏“”->”,但没有成功。
答案 0 :(得分:0)
self.driver = webdriver.Firefox
应为:
self.driver = webdriver.Firefox()