This commit is contained in:
parent
43138e2799
commit
2746e7dd24
|
@ -7,11 +7,11 @@ global.screenshotter = {
|
|||
var page = await browser.newPage();
|
||||
await page.setViewport({ width: 1440, height: 900 });
|
||||
try {
|
||||
await page.goto('http://www.multiplayerpiano.com/lobby');
|
||||
await page.evaluate(function () {
|
||||
await page.goto('https://www.multiplayerpiano.com/lobby');
|
||||
try {await page.evaluate(function () {
|
||||
document.getElementById('modal').click();
|
||||
MPP.client.uri = "ws://530s.gq/mpp-proxy";
|
||||
});
|
||||
MPP.client.uri = "wss://mpp_proxy.qonq.gq";
|
||||
});} catch(e) {console.error(e.message)}
|
||||
await new Promise(resolve => setTimeout(resolve, 5000));
|
||||
let screenshot = await page.screenshot({ type: 'png' });
|
||||
let filename = `Screenshot of www.multiplayerpiano.com/lobby @ ${new Date().toISOString()}.png`;
|
||||
|
|
Loading…
Reference in New Issue