Keyword

When defining action and condition methods, parameter names should avoid these keywords (drvier, store, xpath, css need to be explicitly defined to take effect)

keywords
introduction

method

Indicate the name of the action method

condition

Indicate the name of the condition method

next

Next Action Script

if

'judge' keyword must appear simultaneously with method

check

'judge' keyword, 'check' priority higher than 'if'

loop

'loop' keyword, 'loop' priority is higher than 'check'

while

Keyword within 'loop'

return_flag

Return value tag keywords

store

Memory keywords will be automatically passed in after explicit definition

driver

The added action and condition methods must include a driver. The driver type needs to be as follows:

from selenium.webdriver.remote.webdriver import WebDriver

xpath

Explicitly defined will automatically perform implicit waiting before execution

css

Explicitly defined will automatically perform implicit waiting before execution

fail_script

Execute the script when the condition result is False

Last updated