Skip to content
This repository was archived by the owner on Jan 15, 2026. It is now read-only.

Commit 70a7f80

Browse files
js6pakkuler90
authored andcommitted
Fix puppeteer credentials input
1 parent e2cff7c commit 70a7f80

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

src/activate-license.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ async function run() {
1717
if (unitySerial) {
1818
await unity.activateSerialLicense(unityPath, unityUsername, unityPassword, unitySerial);
1919
} else {
20-
await exec.exec('npm install puppeteer@"^5.x"', [], { cwd: path.join(__dirname, '..') }); // install puppeteer for current platform
20+
await exec.exec('npm install puppeteer@"^13.x"', [], { cwd: path.join(__dirname, '..') }); // install puppeteer for current platform
2121
const licenseRobot = require('./license-robot');
2222
const licenseRequestFile = await unity.createManualActivationFile(unityPath);
2323
const licenseData = await licenseRobot.getPersonalLicense(licenseRequestFile, unityUsername, unityPassword, unityAuthenticatorKey);

src/license-robot.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,12 @@ async function browser_getPersonalLicense(licenseRequestData, username, password
4040
*/
4141
async function licensePage_login(page, username, password, authenticatorKey) {
4242
console.log("License robot. Login...");
43-
await page.waitForSelector('#conversations_create_session_form_email');
44-
await page.type('#conversations_create_session_form_email', username);
45-
await page.type('#conversations_create_session_form_password', password);
43+
44+
await page.waitForSelector("#conversations_create_session_form_email");
45+
46+
await page.evaluate((x) => { document.getElementById("conversations_create_session_form_email").value = x; }, username);
47+
await page.evaluate((x) => { document.getElementById("conversations_create_session_form_password").value = x; }, password);
48+
4649
await Promise.all([
4750
page.click('input[name=commit]'),
4851
page.waitForNavigation({ waitUntil: 'networkidle0' })

0 commit comments

Comments
 (0)