webpage

Managing a web page

this section contains methods that allow you to get information about the properties of the current page, working with its source code, and working with its content after processing its JS.You can also take screenshots of the page and work with the page as an image. Finally, there is a function for uploading and receiving information (without downloading) on arbitrary web pages on the Internet.



Getting information about a page
working with htmlml pages
Working with a page as a drawing
Writing a page to a file




Getting information about a page

get_active_element – get the active page element
get_element_from_point – get the page element at the specified point

get_title – get the page title
get_url – get the current browser url. (before version 4.9.27 - get_location_url)
get_domain – get domain
convert_to_idn – convert to IDN form
convert_from_idn – convert from IDN of the form
get_encoding – get page encoding



Working HTML5 pages

set_body – set a whole new page
get_body – get the HTML5 body (after processing the browser)
get_document_body – get the document body

get_body_after_prefix – get the document body after the specified prefix
get_body_before_prefix – get the document body before the specified prefix
get_body_inter_prefix – get the document body inside the specified prefixes
get_body_inter_prefix_all – get all occurrences of the body inside the specified prefixes

get_source – get the source text of the current web page
get_source_length – get the length of the source text of the current web page



Working with a page as a drawing

print_screen – make a copy of the page screen to a file
print_body – copy the entire page to a file
print_to_pdf – print the page to pdf

get_x_in_webpage_picture – to x the upper left corner of the given pictures on the page
get_y_in_webpage_picture – get the y of the upper left corner of the given pictures on the page
get_pos_in_webpage_picture – get the coordinates of the upper left corner of the given pictures on the page



Direct loading and recording of the start page

load_web_page – download and get a web page
get_url_size – get the file size under the url
get_web_page_code – get the web page response code

save_source_to_file – save the page source text to a file
save_url_to_file – save the contents of the specified url to a file (any content – and pictures)

set_encoding – change page encoding