Jump to content
UBot Underground

Can't Click On Submit Button?


Recommended Posts

Here is my code

set(#ApiKey,"2captcha api","Global")
set user agent("Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36")
wait(2)
navigate("https://www.youtube.com/channel/UCOhHO2ICt0ti9KAh-QHvttQ/about","Wait")
wait for browser event("Page Loaded","")
if($exists(<innertext="VIEW EMAIL ADDRESS">)) {
    then {
        click(<innertext="VIEW EMAIL ADDRESS
">,"Left Click","No")
        wait(1)
        wait for element(<class="recaptcha-checkbox-checkmark">,"","Appear")
        set(#GoogleSiteKey,$find regular expression($scrape attribute(<class="recaptcha-checkbox-checkmark">,"fullhref"),"(?<=anchor\\?k=).*(?=&co=)"),"Global")
        change attribute(<id="g-recaptcha-response">,"style",$replace($scrape attribute(<id="g-recaptcha-response">,"style"),"display: none;",$nothing))
        clear list(%_rawCaptcha)
        add list to list(%_rawCaptcha,$list from text($plugin function("UltimateCaptchaServices.dll", "$2Captcha Service V2", #ApiKey, "", #GoogleSiteKey, $url, "", "", "", "", "Solve Captcha", "Recaptcha-NoCaptcha", "", "Yes", "No"),$new line),"Delete","Global")
        change attribute(<id="g-recaptcha-response">,"value",$list item(%_rawCaptcha,1))
        wait(1)
        click(<class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary captcha-submit">,"Left Click","No")
        wait for element(<class="status-message-text">,30,"Appear")
    }
}

 

Thanks in advance.

Link to post
Share on other sites

<

set(#ApiKey,"2captcha api","Global")
set user agent("Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36")
wait(2)
navigate("https://www.youtube....h-QHvttQ/about","Wait")
wait for browser event("Page Loaded","")
if($exists(<innertext="VIEW EMAIL ADDRESS">)) {
    then {
        click(<innertext="VIEW EMAIL ADDRESS
">,"Left Click","No")
        wait(1)
        wait for element(<class="recaptcha-checkbox-checkmark">,"","Appear")
        set(#GoogleSiteKey,$find regular expression($scrape attribute(<class="recaptcha-checkbox-checkmark">,"fullhref"),"(?<=anchor\\?k=).*(?=&co=)"),"Global")
        change attribute(<id="g-recaptcha-response">,"style",$replace($scrape attribute(<id="g-recaptcha-response">,"style"),"display: none;",$nothing))
        clear list(%_rawCaptcha)
        add list to list(%_rawCaptcha,$list from text($plugin function("UltimateCaptchaServices.dll""$2Captcha Service V2"#ApiKey""#GoogleSiteKey$url"""""""""Solve Captcha""Recaptcha-NoCaptcha""""Yes""No"),$new line),"Delete","Global")
        change attribute(<id="g-recaptcha-response">,"value",$list item(%_rawCaptcha,1))
        wait(1)
        click(<class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary captcha-submit">,"Left Click","No")
        wait for element(<class="status-message-text">,30,"Appear")
    }
}

>

Edited by hare ram
Link to post
Share on other sites
set(#ApiKey,"2captcha api","Global")
set user agent("Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36")
wait(2)
navigate("https://www.youtube....h-QHvttQ/about","Wait")
wait for browser event("Page Loaded","")
if($exists(<innertext="VIEW EMAIL ADDRESS">)) {
    then {
        click(<innertext="VIEW EMAIL ADDRESS
">,"Left Click","No")
        wait(1)
        wait for element(<class="recaptcha-checkbox-checkmark">,"","Appear")
        set(#GoogleSiteKey,$find regular expression($scrape attribute(<class="recaptcha-checkbox-checkmark">,"fullhref"),"(?<=anchor\\?k=).*(?=&co=)"),"Global")
        change attribute(<id="g-recaptcha-response">,"style",$replace($scrape attribute(<id="g-recaptcha-response">,"style"),"display: none;",$nothing))
        clear list(%_rawCaptcha)
        add list to list(%_rawCaptcha,$list from text($plugin function("UltimateCaptchaServices.dll", "$2Captcha Service V2", #ApiKey, "", #GoogleSiteKey, $url, "", "", "", "", "Solve Captcha", "Recaptcha-NoCaptcha", "", "Yes", "No"),$new line),"Delete","Global")
        change attribute(<id="g-recaptcha-response">,"value",$list item(%_rawCaptcha,1))
        wait(1)
        click(<class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary captcha-submit">,"Left Click","No")
        wait for element(<class="status-message-text">,30,"Appear")
    }
}

If it is the captcha submit button just use the ID selector. 

click(<id="recaptcha-verify-button">,"Left Click","No")
Link to post
Share on other sites

i try my best to click on submit button after click captcha image, it is not working manually i want to click on submit button but can't click. I am using 49 and 21 browser in Ubot.I think in this code javascript or Ajax is used to click on submit button... 

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