create
create(url, wait=True, visible=True, timeout=100)
Description
Creates an Internet Explorer (IE) object.
Parameters
url <str> The URL to open.
wait <bool> Specifies whether to wait for the page to load. The default value is True.
visible <bool> Specifies whether the window is visible. The default value is True.
Options:
timeout: The page load timeout. The default is 100 seconds.
Return value
Returns an IETab object <IETab>.
Sample Call: rpa.app.ie.create
# Notes: None.
# The following code provides an example:
page = rpa.app.ie.create('www.baidu.com')catch_host
catch_host(wnd)
Description
Catches an embedded IE window.
Return value
Returns an IETab object <IETab>.
Example call: rpa.app.ie.catch_host
# Notes: This method is for IE pages embedded in Windows applications. First, call the win32.catch method to get the application window object.
# The following code provides an example:
wnd = rpa.ui.win32.catch('Online Shop Manager',mode='substr')
page = rpa.app.ie.catch_host(wnd)catch
catch(name, mode='title', pattern='contain', timeout=10)
Description
Capture the current page.
Parameters
name <str> The title or URL to match.
mode <str> The page property to use for matching. The default value is 'title'.
Options:
Title: Title
URL: URL
pattern <str> The pattern for matching pages.
Options:
equal: Exact match.
Contain: Contains match
regular: Regular expression match.
Return value
Returns an IETab object <IETab>.
Invocation Example: rpa.app.ie.catch
# Notes: Confirm that the target IE page is open before you use this method.
# The following code provides an example:
page = rpa.app.ie.catch('Taobao - Tao! I like it', mode='title', pattern='equal')catch_specific_pages
catch_specific_pages(name, mode='title', pattern='contain')
Description
Capture all pages that meet the condition
Parameters
name <str> The title or URL to match.
mode <str> The page property to use for matching. The default value is 'title'.
Options:
title : title
URL: url
pattern<str> The pattern for matching pages.
Options:
equal: Exact match.
Contain: Partial match
regular: Regular expression match.
Return value
Returns a list of IETab objects <list>.
Call Example: rpa.app.ie.catch_specific_pages
# Notes: Confirm that at least one page that meets the conditions is open before you use this method.
# The following code provides an example:
page_list = rpa.app.ie.catch_specific_pages('Alibaba Cloud')catch_all_pages
catch_all_pages()
Description
This operation returns all pages.
Sample Call: rpa.app.ie.catch_all_pages
# Notes: None.
# The following code provides an example:
page_list = rpa.app.ie.catch_all_pages()close_all
close_all()
Description
Close all pages
Example: rpa.app.ie.close_all
# Notes: None.
# The following code provides an example:
rpa.app.ie.close_all()