Followed minium official website to learn minium ----- (c)

Note: The program -based developer tools in micro-channel current page runs, instead of each run are from home start page

 

A get a single element

get_element () : the current page search controls , if more than one result to match, the first match results to return

name

Types of

Defaults

Explanation

selector

str

Not None

Selector

inner_text

str

None

By character recognition controls within controls

text_contains

str

None

Fuzzy control by matching text within controls

value

str

None

By identifying value Controls Controls

max_timeout

int

20

Timeout, s

Use way:

self.page.get_element ( "Button" , inner_text = " get user information " )

Which is to obtain an element self.page page instance

 

get_elements () : page controls in the current query and returns one or more results

Use and parameters related to get_element () consistent

 

inner_size()

Use way:

self.page.inner_size

 Directly as a parameter to call, not as a function to call

 

scroll_to () : Scrolls to the specified height

name

Types of

Defaults

Explanation

scroll_top

int

Not None

Height in px

duration

int

300

When scrolling animated in ms

使用方式:self.page.scroll_to(self.page.inner_size["height"]/2,500

 

Guess you like

Origin www.cnblogs.com/xiaodingdong/p/11712685.html