Jump to content
UBot Underground

How to limit time spend on a site


Recommended Posts

Hi people !

 

 

 

I'm an Imacros Veteran.

It's been 3 days since I started using Ubot. And I should say, the migration was pretty quick and I have almost converted all the macros which I have done in Imacros to Ubot.

 

 

Alright, let's get into the topic.

 

 

1- At the moment, I'm in the middle of creating a bot that registers accounts in a site.

2- I have a csv file in which the URL's of sites are stored.

3- The bot loops through the file and navigates to each URL in the file(csv file).

4- It works. ..but I still have a concern.

5- Certain sites, take like 3-4 minutes to just load. And I can't wait that long for a site.

6- So, my question is - is there any way to pass on to the next site, if a particular site doesn't load in x seconds?

7- In Imacros, I'm able to set the limit, and I usually set it to 30 seconds.

 

 

I know there will be a solution for this.

So, eagerly waiting for a reply ....

 

 

And yeah, if anyone need more clarification on this, just let me know...my eyes will be on this thread....

 

 

Thanks

Link to post
Share on other sites

Hi,

 

 

Thanks for the help people !

 

 

But, I Still couldn't figure out how it must be done.

But there's definitely an improvement in my code....

 

I made the following changes :-

 

1- Under navigate command, I have set "wait for page load" to "do not wait".

2- Then the next command I used is wait for element.

 

Alright, so, this way, things are working pretty much the way I want.

 

 

But not fully.

 

 

I'll tell you why :-

 

 

1- I have set "wait for element" - to -> wait for "one of the textbox field in the page".

2- And the wait is till it appears.

3- Now, the timeout I have set is 3 sec.

4- But I can still see the page loading for more than 3 sec.

 

 

Can anyone tell me why?

Is it because, I have set it to 3 sec?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...