Action
We have built-in web page behaviors that make it easier for you to operate web pages.You may use the Action in the pre_load.
type of action
import crawlist as cl
action = cl.Action
action.click(...args)
action.inputKeyword(...args)
action.sendEnter(...args)
action.switchLastTab(...args)
action.switchTab(...args)
action.searchRedirect(...args)
action.redirect(...args)what is pre_load?
import crawlist as cl
class MyPager(cl.DynamicLineButtonPager):
def pre_load(self, webdriver: WebDriver = None) -> None:
webdriver.get("https://kuaixun.eastmoney.com/")
cl.Action.click(webdriver, '/html/body/div[1]/div[1]/div[2]/div[1]/div[1]/div[1]/div[1]/div[3]/label/span[1]')
parms of action
methods
parms
Last updated