from selenium.webdriver.remote.webdriver import WebDriver from selenium.webdriver.remote.webelement import WebElement def __init__(self,Chrome_driver:WebDriver): self.driver =Chrome_driver def input(self,ele:WebElement,value): ele.clear() ele.send_keys(value)
pycharm中想自动获取到参数属性的智能提示吗,小技巧,参数类型声明
比如浏览器驱动的Chrome_driver,声明他是WebDriver类,要使用WebDriver类,需导入其所属包