playwright-core
Advanced tools
Comparing version 0.13.0-post-next.1586400584821 to 0.13.0-post-next.1586477576257
@@ -87,2 +87,29 @@ "use strict"; | ||
} | ||
async getAttribute(name) { | ||
return this._evaluateInUtility(({ node }, name) => { | ||
if (node.nodeType !== Node.ELEMENT_NODE) | ||
throw new Error('Not an element'); | ||
const element = node; | ||
return element.getAttribute(name); | ||
}, name); | ||
} | ||
async textContent() { | ||
return this._evaluateInUtility(({ node }) => node.textContent, {}); | ||
} | ||
async innerText() { | ||
return this._evaluateInUtility(({ node }) => { | ||
if (node.nodeType !== Node.ELEMENT_NODE) | ||
throw new Error('Not an element'); | ||
const element = node; | ||
return element.innerText; | ||
}, {}); | ||
} | ||
async innerHTML() { | ||
return this._evaluateInUtility(({ node }) => { | ||
if (node.nodeType !== Node.ELEMENT_NODE) | ||
throw new Error('Not an element'); | ||
const element = node; | ||
return element.innerHTML; | ||
}, {}); | ||
} | ||
async _scrollRectIntoViewIfNeeded(rect) { | ||
@@ -89,0 +116,0 @@ debugInput('scrolling into veiw if needed...'); |
{ | ||
"name": "playwright-core", | ||
"version": "0.13.0-post-next.1586400584821", | ||
"version": "0.13.0-post-next.1586477576257", | ||
"description": "A high-level API to automate web browsers", | ||
@@ -13,3 +13,3 @@ "repository": "github:Microsoft/playwright", | ||
"firefox_revision": "1075", | ||
"webkit_revision": "1188" | ||
"webkit_revision": "1190" | ||
}, | ||
@@ -16,0 +16,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
1392806
34348