perf: 继续替换 spec

This commit is contained in:
ibuler
2023-01-31 18:06:44 +08:00
parent 41154d3793
commit ef51e74b8e
5 changed files with 13 additions and 13 deletions

View File

@@ -87,7 +87,7 @@ class WebAPP(object):
self.account = account
self.platform = platform
self.extra_data = self.asset.specific
self.extra_data = self.asset.spec_info
self._steps = list()
autofill_type = self.asset.spec_info.autofill
if autofill_type == "basic":
@@ -105,24 +105,24 @@ class WebAPP(object):
def _default_custom_steps(self) -> list:
account = self.account
specific_property = self.asset.specific
spec_info = self.asset.spec_info
default_steps = [
Step({
"step": 1,
"value": account.username,
"target": specific_property.username_selector,
"target": spec_info.username_selector,
"command": "type"
}),
Step({
"step": 2,
"value": account.secret,
"target": specific_property.password_selector,
"target": spec_info.password_selector,
"command": "type"
}),
Step({
"step": 3,
"value": "",
"target": specific_property.submit_selector,
"target": spec_info.submit_selector,
"command": "click"
})
]