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