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

Commit e2cff7c

Browse files
committed
Testing
1 parent 1a400fc commit e2cff7c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/license-robot.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ async function browser_getPersonalLicense(licenseRequestData, username, password
1818
const browser = await puppeteer.launch({ headless: headless });
1919
try {
2020
const page = await browser.newPage();
21+
await page.setDefaultNavigationTimeout(120 * 1000);
2122
await page.goto('https://license.unity3d.com/manual');
2223
await licensePage_login(page, username, password, authenticatorKey);
2324
try {
@@ -71,7 +72,7 @@ async function licensePage_login(page, username, password, authenticatorKey) {
7172
*/
7273
async function licensePage_attachFileData(page, licenseRequestData) {
7374
console.log("License robot. Attach license request file...");
74-
await page.waitForTimeout(1000);
75+
await page.waitForTimeout(5000);
7576
await page.setRequestInterception(true);
7677
page.once("request", interceptedRequest => {
7778
interceptedRequest.continue({
@@ -92,7 +93,7 @@ async function licensePage_attachFileData(page, licenseRequestData) {
9293
*/
9394
async function licensePage_selectType(page) {
9495
console.log("License robot. Select license type...");
95-
await page.waitForTimeout(1000);
96+
await page.waitForTimeout(5000);
9697
page.once("request", interceptedRequest => {
9798
interceptedRequest.continue({
9899
method: "PUT",
@@ -112,7 +113,7 @@ async function licensePage_selectType(page) {
112113
*/
113114
async function licensePage_downloadLicense(page) {
114115
console.log("License robot. Download license file...");
115-
await page.waitForTimeout(1000);
116+
await page.waitForTimeout(5000);
116117
page.once("request", interceptedRequest => {
117118
interceptedRequest.continue({
118119
method: "POST",

0 commit comments

Comments
 (0)