Hello! I want to create 3 functions, and those 3 functions will have while(true) loop (infinite loop) that will search for an image and if found it will click it. but I want all 3 functions to run simultaneously, how can I do that?
If you have multiple browser threads then you can add a date column in database for each account. When some action is finished then you can add 30 minutes to the date now and add it to the database of that particular account. Then add a check condition in the beginning of the thread which checks if the current date is less or greater than the database date. If it is greater that means there is still time left and then close that thread without opening browser.
I createa server in Node.js and I want to run this function when it is called, and then do the task asynchronously in a seperate thread and browser and then return the result how can I do this ?