Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8367231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:06:28+00:00 2026-06-09T13:06:28+00:00

How do I build in the functionality as demonstrated by the comments? // for(x=0;x<10;x++)

  • 0

How do I build in the functionality as demonstrated by the comments?

// for(x=0;x<10;x++)
$('a[attr*="unique"]:first').attr('id', 'mysuperid1');
document.getElementById("mysuperid1").click();
// delay

$("span:contains(action)").parent().click();
// delay

$jq("a:contains(action)").attr('id', 'mysuperid2');
document.getElementById("mysuperid2").click();
// delay

$('input[value="action"]').attr('id', "mysuperid3");
document.getElementById("mysuperid3").click();
// delay

// back to the top of loop

(names and select / search terms have been modified)

The problem I think is like the problem found here http://darklaunch.com/2011/05/21/javascript-for-loop-using-settimeout-to-pass-argument But I can’t figure out how to extrapolate what is taught on that link to contain multiple delays since I’m not a javascript developer.

This is a bot which will automate some web tasks for me.

Many thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T13:06:30+00:00Added an answer on June 9, 2026 at 1:06 pm

    Perhaps you could use this approach as a template, and then divide all your tasks into their own functions.

    var delay = 1000;
    
    function beginTasks(){
        taskOne();
    }
    
    function taskOne(){
        // Do something
        window.setTimeout(function(){
            taskTwo();
        }, delay);
    }
    
    function taskTwo(){
        // Do something else
        window.setTimeout(function(){
            beginTasks(); // <-- back to start
        }, delay);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to build the back button with functionality that on click of
I'm trying to build auto suggest functionality using Solr. The index contains different locations
Wondering if I can speed up the search. I need to build a functionality
How to build Opera unite like functionality using .NET? When we run opera browser
I am trying to build a virtual conference framework which provides functionality for holding
I'm trying to build something akin to Facebook's Share functionality for my website. I've
I want to build a community website with videoconferencing functionality integrated. I would prefer
I'm trying to build more generic query functionality into my application. What I'd like
As part of a larger webapp, I want to build functionality that allows a
In Delphi XE2 the automatically generated build numbers functionality now uses some kind of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.