sdfdsf
This commit is contained in:
@@ -122,7 +122,7 @@ class SeleniumBrowser {
|
|||||||
getHtml(driver, html, params) {
|
getHtml(driver, html, params) {
|
||||||
if (params.waitElements) {
|
if (params.waitElements) {
|
||||||
return driver.get(params.uri)
|
return driver.get(params.uri)
|
||||||
.then(() => Promise.all(params.waitElements.map(s => driver.wait(until.elementLocated(By.css(s))))))
|
.then(() => Promise.all(params.waitElements.map(s => driver.wait(until.elementLocated(By.css(s)), 1000 * 5))))
|
||||||
.then(() => driver.findElement(By.css('body')))
|
.then(() => driver.findElement(By.css('body')))
|
||||||
.then(body => body.getAttribute('innerHTML'))
|
.then(body => body.getAttribute('innerHTML'))
|
||||||
.then(html => {
|
.then(html => {
|
||||||
|
|||||||
Reference in New Issue
Block a user