Skip to content

Commit 2deb9ab

Browse files
authored
Merge pull request #6 from sauravhathi/feature
finish delay ➕
2 parents c828daa + 43743ac commit 2deb9ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

content.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,15 @@ const attempt = (ans_key, time) => {
2828
let i = 0;
2929

3030
toast("Started attempting the test");
31-
function attemptQuestion() {
31+
async function attemptQuestion() {
3232
document.querySelector(`#${ans[i]}_${i + 1}`).click();
3333
document.querySelector("#main_div > div.tableWidthPercent > div.onlineTestLeftDiv > div.qnav > span.saveNextButton > a").click();
3434
i++;
3535

3636
if (i === len) {
3737
toast("Finished attempting the test");
3838
clearInterval(inter);
39+
await new Promise(r => setTimeout(r, 1000));
3940
document.querySelector('#activator').click();
4041
document.querySelector('input[name="rd"][value="Y"]').click();
4142
}

0 commit comments

Comments
 (0)