This commit is contained in:
g1879 2020-11-08 23:44:09 +08:00
parent cf7d76b040
commit 3821338d26

View File

@ -53,10 +53,7 @@ class DriverElement(DrissionElement):
names+=")"
return names;
'''
attrs = dict()
for attr in eval(self.run_script(js)):
attrs[attr] = self.attr(attr)
return attrs
return {attr: self.attr(attr) for attr in eval(self.run_script(js))}
@property
def text(self) -> str: