If / Else / Exists



  • Loving this software. I'm a UBot user and this is much quicker to use :) lucky I found you on 2captcha :D

    Having a problem with If / Else.

    My script sends emails on a classifieds site.

    I am stuck when the page does not load the element and my script breaks.

    So.

    Mostly the site doesn't always show the reCaptcha or doesn't have a "reply to email" element showing.

    I set it where if element reCaptcha shown then solve reCaptcha Else move to next element if this element not shown then click Next page.

    This is on a loop function also which is working perfectly.

    It keeps getting stuck on reCaptcha and not recognising the Else then moving to next element?

    Really need some help 😀👍



  • @webvend hey! Welcome! I've been with ubot 5 years myself. Haven't looked back since.

    Mind uploading your script so we can take a look, or the section of code in reference too? I've notice my If/Else breaks on Else when I use some of the Database functions, do you have any right before?

    Allister☯



  • Hey man thanks for replying do you still use UBot?

    I don't like the ongoing fees so won't pay for that and the plugins people sell are really expensive IMO.

    Will upload the part I'm having an issue with - so frustrating right now 😁



  • @webvend said in If / Else / Exists:

    Hey man thanks for replying do you still use UBot?

    I don't like the ongoing fees so won't pay for that and the plugins people sell are really expensive IMO.

    Will upload the part I'm having an issue with - so frustrating right now 😁

    No I do not. To many cons both literally and figuratively. The core just isn't stable is the #1 reason, hasn't been for years even U4 has major core problems. I could go on for days about Ubot problems. Just imagine an iceberg with "Chumps prefer a beautiful lie to an ugly truth."

    I'll be on for the next 20 minutes or so just fyi.

    Allister☯



  • @Allister Hey - sorry I'm on European Time. Not sure if you're in USA.

    Having so many issues now trying to solve this myself also where is the code I select code view but it's just the HTML of site?

    I am a new coder so learning as I go along.

    I am now finding the script just Speeds through tried putting wait for browser like "UBot Waits" the (sleep) functions don't work useless 😞 they don't stop the script and wait.

    I am assuming this is a bug?

    I really appreciate this is Free but wish I could get it working.

    Seems it needs a restart after every change is that the same with you?

    If I make a change and try (execute script from here) it just Motors through on Top Speed not stopping to click elements.

    If / Else doesn't work I have tried everything so no point keep trying. Is Exists with If / Else also does not work.

    The script will only click Certain Elements if I manually use the action "click this action only".

    😳😳😳😳😳


  • administrators

    @webvend

    Hi,

    It keeps getting stuck on reCaptcha and not recognising the Else then moving to next element?

    In your case you need to use "Is Element Exists" action.


  • administrators

    @webvend said in If / Else / Exists:

    Having so many issues now trying to solve this myself

    Could you describe them?

    also where is the code I select code view but it's just the HTML of site?

    Code of site:

    0_1496314311798_SiteCode.png

    Code of script:
    0_1496314356911_ScriptCode.png

    I am now finding the script just Speeds through tried putting wait for browser like "UBot Waits" the (sleep) functions don't work useless 😞 they don't stop the script and wait.

    I don't understand, could you explain, what are you trying to achieve?

    I really appreciate this is Free but wish I could get it working.

    Can you explain what is not working?

    Seems it needs a restart after every change is that the same with you?

    Nope, restart needed only if you add resources(change user interface)

    If I make a change and try (execute script from here) it just Motors through on Top Speed not stopping to click elements.

    Could you attach your script?

    If / Else doesn't work I have tried everything so no point keep trying. Is Exists with If / Else also does not work.

    If else works perfectly!

    The script will only click Certain Elements if I manually use the action "click this action only".

    There is no such action, but you can click with "Move And Click On Element" action.



  • @administrators Thank you for your help.

    I will PM my code - I have also tried everything you suggested / Is Exists / also does not seem to work for me.

    The code runs too fast on the page unless I restart your software.


  • administrators

    @webvend

    Script can be saved with Project -> Save. No need to copy script content from script tab.

    The code runs too fast on the page unless I restart your software.

    I can't reproduce that.

    1. Click on the next button is disabled. Change mode to "Execute and add"

    2. You told that Is Exists is not working, but I don't see any "Is element exists" action on your side.
      You need to do something like this

    0_1496325530607_CheckExists.png

    Because there are pages which is deleted by author and there is no reply button.

    1. I also have problems with using coordinates, but when I cahnge selector >CSS> :nth-child(1) > p > .reply-email which is default, it works fine for more. Why do you desided to change selector from default?

    2. You don't need to call Wait Full Page Load every time. Just click here

    0_1496325669806_WaitFullPageLoad.png


Log in to reply
 

Looks like your connection to Bablosoft was lost, please wait while we try to reconnect.