Jump to content
UBot Underground

Scrape Not Working In Loop


Recommended Posts

Hi guys,

 

Have a weird issue:

 

- I am scraping the status of a button, which works perfectly fine and then adding to list from text (the variable). When I manually run the node this all works fine

- But when I run the bot this part never works and I do not get this added to my list.

 

Can anybody help here?

 

 

Thanks,

Link to post
Share on other sites

I should clarify , the scraping part is working, the add to list from text part is not working as part of the loop but if run manually it does work.

 

Thanks

Link to post
Share on other sites

Would be easier to help with some code. 
But maybe you are missing a wait? Or wait for element? If you use the browser, it might take a moment before the element you try to access is loaded?

 

Dan

Link to post
Share on other sites

Well the problem I see is that

 

- It works when I just run node

- When I run the whole bot it does not work, already included a 10 sec wait before, even replaced the variable with static text to test and it just wont do it.

 

Code in question :

wait(10)

        add list to list(%status,$list from text(#button,""),"Don\'t Delete","Global")

 

The scraping part works just fine. Even if I replace #button for text then it won't fill it.

 

Basically I am scraping some content, then with an if statement I am determining the #button variable then afterwards adding list to table as column.  

 

Thanks a lot !

Link to post
Share on other sites

So basically whatever I do to do the add list from text command it just wont work with "run" for the whole bot, but works without a problem when I just run node. Clueless right now

Link to post
Share on other sites

I changed it to add item to list and am experimenting with that now. I am not sure why something works when running the node but not the bot very weird (unless I am missing something)

Link to post
Share on other sites

OK please close. FACEPALM 

 

I copied the exact same code over and realized that one } was moved which made one of the statement end up in another then statement, thus not being available when running the next command.

 

Thanks for trying to help here, must have overlooked this in node node mode was easier to spot in code editor. 

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...