-libdoc = {"all_tags":[],"contains_tags":false,"doc":"<p>PuppeteerLibrary is a web testing library for Robot Framework. PuppeteerLibrary uses the pyppeteer library internally to control a web browser.\x3c/p>\n<p>This document explains how to use keywords provided by PuppeteerLibrary.\x3c/p>\n<h3 id=\"Locator syntax\">Locator syntax\x3c/h3>\n<p>PuppeteerLibrary supports finding elements based on different strategies such as the element id, XPath expressions, or CSS selectors same as SeleniumLibrary\x3c/p>\n<p>Locator strategy is specified with a prefix using either syntax <code>strategy:value\x3c/code> or <code>strategy=value\x3c/code>.\x3c/p>\n<table border=\"1\">\n<tr>\n<th>Strategy\x3c/th>\n<th>Match based on\x3c/th>\n<th>Example\x3c/th>\n\x3c/tr>\n<tr>\n<td>id\x3c/td>\n<td>Element <code>id\x3c/code>.\x3c/td>\n<td><code>id:example\x3c/code>\x3c/td>\n\x3c/tr>\n<tr>\n<td>xpath\x3c/td>\n<td>XPath expression.\x3c/td>\n<td><code>xpath://div[@id=\"example\"]\x3c/code>\x3c/td>\n\x3c/tr>\n<tr>\n<td>css\x3c/td>\n<td>CSS selector.\x3c/td>\n<td><code>css:div#example\x3c/code>\x3c/td>\n\x3c/tr>\n<tr>\n<td>link\x3c/td>\n<td>Exact text a link has.\x3c/td>\n<td><code>link:Home page\x3c/code>\x3c/td>\n\x3c/tr>\n<tr>\n<td>partial link\x3c/td>\n<td>Partial link text\x3c/td>\n<td><code>partial link:Home\x3c/code>\x3c/td>\n\x3c/tr>\n\x3c/table>","generated":"2020-06-21 11:12:22","inits":[],"keywords":[{"args":["selenium_locator"],"doc":"","matched":true,"name":"Clear Element Text","shortdoc":"","tags":[]},{"args":["selenium_locator"],"doc":"","matched":true,"name":"Click Button","shortdoc":"","tags":[]},{"args":["selenium_locator"],"doc":"","matched":true,"name":"Click Element","shortdoc":"","tags":[]},{"args":["selenium_locator"],"doc":"","matched":true,"name":"Click Image","shortdoc":"","tags":[]},{"args":["selenium_locator"],"doc":"","matched":true,"name":"Click Link","shortdoc":"","tags":[]},{"args":[],"doc":"<p>Closes the current browser\x3c/p>","matched":true,"name":"Close Browser","shortdoc":"Closes the current browser","tags":[]},{"args":[],"doc":"<p>Get page location\x3c/p>","matched":true,"name":"Get Location","shortdoc":"Get page location","tags":[]},{"args":["selenium_locator"],"doc":"","matched":true,"name":"Get Text","shortdoc":"","tags":[]},{"args":[],"doc":"<p>Get page title\x3c/p>","matched":true,"name":"Get Title","shortdoc":"Get page title","tags":[]},{"args":["selenium_locator"],"doc":"","matched":true,"name":"Get Value","shortdoc":"","tags":[]},{"args":[],"doc":"<p>Simulate browser go back\x3c/p>","matched":true,"name":"Go Back","shortdoc":"Simulate browser go back","tags":[]},{"args":["url"],"doc":"<p>Navigates the current page to the <code>url\x3c/code>\x3c/p>","matched":true,"name":"Go To","shortdoc":"Navigates the current page to the ``url``","tags":[]},{"args":["selenium_locator","text","clear=True"],"doc":"","matched":true,"name":"Input Text","shortdoc":"","tags":[]},{"args":["width=1366","height=768"],"doc":"<p>Maximize view port not actual browser and set default size to 1366 x 768\x3c/p>","matched":true,"name":"Maximize Browser Window","shortdoc":"Maximize view port not actual browser and set default size to 1366 x 768","tags":[]},{"args":["url","browser=chrome","alias=None","options=None"],"doc":"<p>Opens a new browser instance to the specific <code>url\x3c/code>.\x3c/p>\n<p>The <code>browser\x3c/code> argument specifies which browser to use.\x3c/p>\n<table border=\"1\">\n<tr>\n<th>Browser\x3c/th>\n<th>Name(s)\x3c/th>\n\x3c/tr>\n<tr>\n<td>Google Chrome\x3c/td>\n<td>chrome\x3c/td>\n\x3c/tr>\n\x3c/table>\n<p>The <code>options\x3c/code> argument as a dictionary\x3c/p>\n<table border=\"1\">\n<tr>\n<th>Property\x3c/th>\n<th>Value\x3c/th>\n\x3c/tr>\n<tr>\n<td>headless\x3c/td>\n<td>default True\x3c/td>\n\x3c/tr>\n<tr>\n<td>width\x3c/td>\n<td>default 1366\x3c/td>\n\x3c/tr>\n<tr>\n<td>height\x3c/td>\n<td>default 768\x3c/td>\n\x3c/tr>\n\x3c/table>\n<p>Example:\x3c/p>\n<table border=\"1\">\n<tr>\n<td>&{options} =\x3c/td>\n<td>create dictionary\x3c/td>\n<td>headless=${False}\x3c/td>\n\x3c/tr>\n<tr>\n<td>Open browser\x3c/td>\n<td><a href=\"https://www.w3schools.com/html/html_forms.asp\">https://www.w3schools.com/html/html_forms.asp\x3c/a>\x3c/td>\n<td>options=${options}\x3c/td>\n\x3c/tr>\n\x3c/table>","matched":true,"name":"Open Browser","shortdoc":"Opens a new browser instance to the specific ``url``.","tags":[]},{"args":[],"doc":"<p>Reload the current page\x3c/p>","matched":true,"name":"Reload Page","shortdoc":"Reload the current page","tags":[]},{"args":["locator=MAIN"],"doc":"<p>Switches to tabs matching locator locator support options NEW, MAIN and query using name, title and url\x3c/p>\n<ul>\n<li>NEW: latest opened window\x3c/li>\n<li>MAIN: main window\x3c/li>\n<li>title=\"QAHive\": window title\x3c/li>\n<li>url=\"https://qahive.com\": url\x3c/li>\n\x3c/ul>","matched":true,"name":"Switch Window","shortdoc":"Switches to tabs matching locator locator support options NEW, MAIN and query using name, title and url - NEW: latest opened window - MAIN: main window - title=\"QAHive\": window title - url=\"https://qahive.com\": url","tags":[]},{"args":["timeout=5"],"doc":"","matched":true,"name":"Wait For New Window Open","shortdoc":"","tags":[]}],"name":"PuppeteerLibrary","named_args":true,"scope":"GLOBAL","version":"0.0.1"};
0 commit comments