Jump to content
UBot Underground

Getting Script Error : Bad Cast After a couple loops


Recommended Posts

I have added a value in UI text box, i have set the bot to add this value in a text field on a webpage everytime the webpage and the field is loaded, the bot does this right but after a couple loops it gives me the following error.

 

http://i.imgur.com/GLmrbOX.png

 

it doesn't give me any more details on the error, can anyone please tell me what does this error stands for?

Link to post
Share on other sites

I have added a value in UI text box, i have set the bot to add this value in a text field on a webpage everytime the webpage and the field is loaded, the bot does this right but after a couple loops it gives me the following error.

 

http://i.imgur.com/GLmrbOX.png

 

it doesn't give me any more details on the error, can anyone please tell me what does this error stands for?

 

Do you check if the element is there before using "type text"?

You should use "wait for element" before you interact with them

 

Dan

Link to post
Share on other sites

I did that too and added timeout to 999 but it still gives me the same error, when i do this in imacros or winautomation it works perfectly fine, 300 loops and not a single error, but in ubot it gets stuck somewhere between the 20th and 30th loop.

 

is there some way to make ubot skip the error and continue the loop from start if error occurs?

Link to post
Share on other sites

I did that too and added timeout to 999 but it still gives me the same error, when i do this in imacros or winautomation it works perfectly fine, 300 loops and not a single error, but in ubot it gets stuck somewhere between the 20th and 30th loop.

 

is there some way to make ubot skip the error and continue the loop from start if error occurs?

In your place I would try with UBot v4, I think this is v5 problem! Btw, while developing you should have errors enabled, although there is an option to disable them (although I wouldn't suggest you disable them)... However, in your compiled bots errors are ignored, and bot skips to next line/commands

 

I wish there was an ON ERROR clause in UBOT so we could trap errors, analyze our data and respond to the problem.

Yeah, I think UBot would really need some kind of exception handling....currently you instead need to rely on success signs, which doesn't work in all cases....

  • Like 1
Link to post
Share on other sites

@UBotDev, Yes this seems to be a V5 problem in v4 the bot is running super fast and with no errors so far. Ubot 5 for some reason works quite slow and gives tons of errors :(

 

Edit : V4, is giving little errors to, its giving erorr msg and immidiately after that crashs if i leave a field empty :(

Edited by Bealad00
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...