我想知道使用下面的代码将列表 / webelement 变量转换为 .txt 的函数我只能在控制台 en.txt 上读取文件,但不能将其保存在我的电脑上。
recuperation_nom = driver.find_elements_by_class_name("title-3")
for resultat_nom in recuperation_nom:
print(resultat_nom.text)
我想知道使用下面的代码将列表 / webelement 变量转换为 .txt 的函数我只能在控制台 en.txt 上读取文件,但不能将其保存在我的电脑上。
recuperation_nom = driver.find_elements_by_class_name("title-3")
for resultat_nom in recuperation_nom:
print(resultat_nom.text)