oop that wont work
This commit is contained in:
parent
7114896ebe
commit
3549c63a08
|
@ -19,10 +19,10 @@ global.screenshotter = {
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
await page.goto('http://ourworldofpixels.com');
|
await page.goto('http://ourworldofpixels.com');
|
||||||
await page.evaluate(function () {
|
await page.evaluate(function (owopcaptcha) {
|
||||||
localStorage.owopcaptcha = require('./config').owop_captcha_password;
|
localStorage.owopcaptcha = owopcaptcha;
|
||||||
OWOP.camera.zoom = 1;
|
OWOP.camera.zoom = 1;
|
||||||
});
|
}, require('./config').owop_captcha_password);
|
||||||
await new Promise(resolve => setTimeout(resolve, 2000));
|
await new Promise(resolve => setTimeout(resolve, 2000));
|
||||||
await page.evaluate(function () {
|
await page.evaluate(function () {
|
||||||
for (let butt of document.getElementsByTagName('button')) {
|
for (let butt of document.getElementsByTagName('button')) {
|
||||||
|
|
Loading…
Reference in New Issue