Condition
Crawlipt includes some built-in conditions so that you can make logical judgments when interacting with web pages. At the same time, you can also add your own condition method for extension.
Built-in condition method
method
alias
parms
notes
'fail_script' keyword
{
"check": {
"condition": "presence",
"xpath": "//*[@id=\"main-metro\"]/ul/li[3]/a[3]",
"fail_script": [{
"method": "log",
"msg": "[fail] login failed"
}]
}
}Logical inversion
Add your own conditions
Last updated