pg: microsoft games: click next, #5
This commit is contained in:
parent
fc3f0a6333
commit
08b9df7cc4
1 changed files with 3 additions and 2 deletions
|
|
@ -178,8 +178,6 @@ try {
|
||||||
redeem_action = 'redeemed?';
|
redeem_action = 'redeemed?';
|
||||||
console.log(' Redeemed successfully? Please report your Response from above (if it is new) in https://github.com/vogler/free-games-claimer/issues/5');
|
console.log(' Redeemed successfully? Please report your Response from above (if it is new) in https://github.com/vogler/free-games-claimer/issues/5');
|
||||||
}
|
}
|
||||||
await page2.pause();
|
|
||||||
await page2.close();
|
|
||||||
} else if (store == 'microsoft games') {
|
} else if (store == 'microsoft games') {
|
||||||
console.error(` Redeem on ${store} not yet implemented!`);
|
console.error(` Redeem on ${store} not yet implemented!`);
|
||||||
if (page2.url().startsWith('https://login.')) {
|
if (page2.url().startsWith('https://login.')) {
|
||||||
|
|
@ -197,6 +195,7 @@ try {
|
||||||
redeem_action = 'redeem (not found)';
|
redeem_action = 'redeem (not found)';
|
||||||
console.error(' Code was not found!');
|
console.error(' Code was not found!');
|
||||||
} else { // TODO find out other responses
|
} else { // TODO find out other responses
|
||||||
|
await page2.click('#nextButton');
|
||||||
redeem_action = 'redeemed?';
|
redeem_action = 'redeemed?';
|
||||||
console.log(' Redeemed successfully? Please report your Response from above (if it is new) in https://github.com/vogler/free-games-claimer/issues/5');
|
console.log(' Redeemed successfully? Please report your Response from above (if it is new) in https://github.com/vogler/free-games-claimer/issues/5');
|
||||||
}
|
}
|
||||||
|
|
@ -204,6 +203,8 @@ try {
|
||||||
} else if (store == 'legacy games') {
|
} else if (store == 'legacy games') {
|
||||||
console.error(` Redeem on ${store} not yet implemented!`);
|
console.error(` Redeem on ${store} not yet implemented!`);
|
||||||
}
|
}
|
||||||
|
await page2.pause();
|
||||||
|
await page2.close();
|
||||||
}
|
}
|
||||||
notify_game.status = `<a href="${redeem[store]}">${redeem_action}</a> ${code} on ${store}`;
|
notify_game.status = `<a href="${redeem[store]}">${redeem_action}</a> ${code} on ${store}`;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue