User Tools

Site Tools


Sidebar

en:objects:interface

This is an old revision of the document!


interface

Object for managing elements on the current page (direct link to the element) - available from version 4.6.28

to work with direct interfaces to DOM objects, use the following functions that get and create these objects.



Actions with the
element Change element
To obtain the properties of an item
Get the location of the
element Full mouse emulation over an element
event-level mouse Emulation over an element
Full keyboard emulation over the element
Keyboard emulation at the event level above the
element Auxiliary
working with the DOM tree structure




Actions with the

element click – click on the
element meta_click – focus, move the mouse to the element at random coordinates, and click
event – send an event to the
element check – check the element
focus – set the input focus on the
element scroll_to_view – scroll the page so that the element is visible (via java script)
ensure_visible – scroll the page so that the element is visible (through scrolling)
scroll – scroll the element
screenshot – take a screenshot of the element



Change the

element set_value – set the value
set_inner_text – set internal text
set_inner_html – set internal htmlml
add_attribute – add attribute
set_attribute – set the attribute
remove_attribute – remove attribute



To obtain the properties of an item

get_number – get the number
get_name – get the name
get_id – get id
get_inner_text – get internal text
get_inner_html – get internal html_
get_outer_text – get external text
get_outer_html – get external htmll
get_tag – get the object tag
get_xpath – get the XPath of the
element get_value – get the value
get_href – get href
get_src – get src
get_alt – get alt
get_attribute – get the attribute value

get_all_attributes – get the names of all attributes
get_all_attributes_values – get the values of all attributes
get_all_events – get all events

is_disabled – check the availability of the
element is_checked – check whether the element is checked
is_visibled – check the visibility of the element on the page
is_view_now – check that the element falls in the visible area of the page
is_exist – check for an element on the page

get_numbers_child – get child element numbers
get_frame_number – get the number of the frame that contains the
element get_form_number – get the number of the form that contains the element



Get the location of the

element get_x – get the X coordinate
get_y – get the Y coordinate
get_width – get width
get_height – get height



Full mouse emulation over the

element mouse_move – full emulation of moving the mouse to the element
mouse_move_to – full emulation of moving the mouse to the element along the specified path
mouse_click – full emulation of a mouse click on an element
mouse_double_click – full emulation of a double-click on an element
mouse_left_down – full emulation of left-click on an element
mouse_left_up – full emulation of pressing the left mouse button on an element
mouse_right_click – full emulation of a right-click on an element
mouse_right_down – full emulation of right-clicking on an element
mouse_right_up – full emulation of pressing the right mouse button on an element



Mouse emulation at the event level above the

element send_mouse_move – emulates the mouse move event to the element
send_mouse_move_to – emulates the event of moving the mouse to the element along the specified path
send_mouse_click – emulates a mouse click event on an element
send_touch – emulation of a finger-tap event on an element
send_mouse_double_click – emulates a double-click event on an element
send_mouse_left_down – emulates a left-click event on an element
send_mouse_left_up – emulates the event of pressing the left mouse button on the element
send_mouse_right_click – emulates a right-click event on an element
send_mouse_right_down – emulates a right-click event on an element
send_mouse_right_up – emulates the right-click event on the element





Full mouse emulation over the

element input – emulates entering a string in the
element key (formerly press_key_by_code before version 4.9.21) – emulate keys from the keyboard to the
element key_down – emulates a key press on an element
key_up – emulation of pressing a key on an element



Keyboard emulation at the event level above the

element send_input – emulation of string input events in the
element send_key – emulation of keyboard input events in the
element send_key_down – emulates a keystroke event on the
element send_key_up – emulates the key release event on the element



Auxiliary

__destruct – destroy the interface (free up the memory it occupies)
get_clone – get a clone of the DOM interface



Working with the DOM tree structure

add_child – add a child element to the element
insert_before – add a child element to the element
remove – remove the
element get_parent – get the parent DOM interface
get_parent_by_attribute – get the parent DOM interface by its attribute value
get_next – get the following DOM interface
get_prev – get the previous DOM interface
get_child_count – get the number of child DOM interfaces

get_child_by_number – get the child DOM interface with the specified number
get_child_by_inner_text – get a child DOM interface with the specified internal text
get_child_by_inner_html – get a child DOM interface with the specified internal HTML
get_child_by_outer_text – get a child DOM interface with the specified external text
get_child_by_outer_html – get a child DOM interface with the specified external HTML
get_child_by_attribute – get a child DOM interface with the specified attribute value

get_all_child_by_inner_text – get all child DOM interfaces with the specified internal text
get_all_child_by_inner_html – get all child DOM interfaces with the specified internal HTML
get_all_child_by_attribute – get all child DOM interfaces with the specified attribute value

en/objects/interface.1602008503.txt.gz · Last modified: 2020/10/06 21:21 by sales