hare ram 23 Posted December 23, 2017 Report Share Posted December 23, 2017 Here is my codeset(#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. Quote Link to post Share on other sites
LazyBotter 188 Posted December 26, 2017 Report Share Posted December 26, 2017 Use the <> code button on the forum when posting code... Then I can help :-) Quote Link to post Share on other sites
hare ram 23 Posted December 27, 2017 Author Report Share Posted December 27, 2017 < click(<class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary captcha-submit">,"Left Click","No")> Quote Link to post Share on other sites
hare ram 23 Posted December 27, 2017 Author Report Share Posted December 27, 2017 (edited) <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 December 27, 2017 by hare ram Quote Link to post Share on other sites
LazyBotter 188 Posted December 27, 2017 Report Share Posted December 27, 2017 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") Quote Link to post Share on other sites
hare ram 23 Posted December 28, 2017 Author Report Share Posted December 28, 2017 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... Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.