Skip to content

Commit 81778f3

Browse files
committed
Merge branch 'release/0.2.0'
2 parents df1300c + ee40946 commit 81778f3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

PuppeteerLibrary/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
ElementKeywords,
99
FormElementKeywords)
1010

11-
__version__ = '0.0.1'
11+
__version__ = '0.2.0'
1212

1313

1414
class PuppeteerLibrary(DynamicCore):

docs/PuppeteerLibrary.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@
547547
jQuery.extend({highlight:function(e,t,n,r){if(e.nodeType===3){var i=e.data.match(t);if(i){var s=document.createElement(n||"span");s.className=r||"highlight";var o=e.splitText(i.index);o.splitText(i[0].length);var u=o.cloneNode(true);s.appendChild(u);o.parentNode.replaceChild(s,o);return 1}}else if(e.nodeType===1&&e.childNodes&&!/(script|style)/i.test(e.tagName)&&!(e.tagName===n.toUpperCase()&&e.className===r)){for(var a=0;a<e.childNodes.length;a++){a+=jQuery.highlight(e.childNodes[a],t,n,r)}}return 0}});jQuery.fn.unhighlight=function(e){var t={className:"highlight",element:"span"};jQuery.extend(t,e);return this.find(t.element+"."+t.className).each(function(){var e=this.parentNode;e.replaceChild(this.firstChild,this);e.normalize()}).end()};jQuery.fn.highlight=function(e,t){var n={className:"highlight",element:"span",caseSensitive:false,wordsOnly:false};jQuery.extend(n,t);if(e.constructor===String){e=[e]}e=jQuery.grep(e,function(e,t){return e!=""});e=jQuery.map(e,function(e,t){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")});if(e.length==0){return this}var r=n.caseSensitive?"":"i";var i="("+e.join("|")+")";if(n.wordsOnly){i="\\b"+i+"\\b"}var s=new RegExp(i,r);return this.each(function(){jQuery.highlight(this,s,n.element,n.className)})}
548548
</script>
549549
<script type="text/javascript">
550-
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>&amp;{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"};
550+
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:36:14","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>&amp;{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.2.0"};
551551
</script>
552552
<title></title>
553553
</head>

0 commit comments

Comments
 (0)