Skip to content
Snippets Groups Projects
Commit 655bcbcd authored by Brian Peiris's avatar Brian Peiris
Browse files

cleanup

parent 71c94c13
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ const querystring = require("query-string"); ...@@ -13,7 +13,7 @@ const querystring = require("query-string");
const url = "https://localhost:8080/hub.html?" + querystring.stringify(params); const url = "https://localhost:8080/hub.html?" + querystring.stringify(params);
console.log("spawning bots..."); console.log("Spawning bot...");
page.on("console", msg => console.log("PAGE: ", msg.text())); page.on("console", msg => console.log("PAGE: ", msg.text()));
const navigate = async () => { const navigate = async () => {
...@@ -22,10 +22,10 @@ const querystring = require("query-string"); ...@@ -22,10 +22,10 @@ const querystring = require("query-string");
await page.evaluate(() => { await page.evaluate(() => {
console.log(navigator.userAgent); console.log(navigator.userAgent);
}); });
console.log("BPDEBUG navigated");
// Interact with the page so that audio can play. // Interact with the page so that audio can play.
await page.mouse.click(100, 100); await page.mouse.click(100, 100);
await page.evaluate(() => { await page.evaluate(() => {
// Let the setup process continue in the app.
window.interacted(); window.interacted();
}); });
} catch (e) { } catch (e) {
......
...@@ -6,9 +6,7 @@ cd $script_directory/.. ...@@ -6,9 +6,7 @@ cd $script_directory/..
yarn yarn
# yarn build yarn build
# yarn serve --ssl --port 8080 public & yarn serve --ssl --port 8080 public &
yarn start &
node scripts/run-bot.js node scripts/run-bot.js
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment