willyanmoreira 0 Posted August 6, 2019 Report Share Posted August 6, 2019 Hi! Im trying to save an image from a determinated site. It runs ok, resolving captcha etc. But it save the first Page, i dont know why. Quote Link to post Share on other sites
willyanmoreira 0 Posted August 6, 2019 Author Report Share Posted August 6, 2019 Being more specific, that´s the steps im doing: - Navigate URL- Solve Captcha- Click button and load a new page- Save a image from that new page But, When I do that "Save browser image" or "Save element Page" brings me the first page (Captcha page) Quote Link to post Share on other sites
hare ram 23 Posted August 7, 2019 Report Share Posted August 7, 2019 send full code with site details Quote Link to post Share on other sites
willyanmoreira 0 Posted August 7, 2019 Author Report Share Posted August 7, 2019 This is a small version to replicate the problemAnd i have another question. Why JavaScript is not working when i set background style?Thanks for helping obs: i all browser available in set user agent. set user agent("Internet Explorer 10")set(#path,"C:","Global")navigate("http://www.receita.fazenda.gov.br/pessoajuridica/cnpj/cnpjreva/cnpjreva_solicitacao.asp","Wait")wait for browser event("Everything Loaded",60)wait for browser event("DOM Ready",60)click(<name="captchaSonoro">,"Double Click","No")wait for browser event("Everything Loaded",60)wait for browser event("DOM Ready",60)type text(<name="cnpj">,60412447000108,"Standard")wait for element(<id="imgCaptcha">,"","Appear")type text(<name="txtTexto_captcha_serpro_gov_br">,$solve captcha(<src="./captcha/gerarCaptcha.asp">),"Standard")wait(2)click(<name="submit1">,"Double Click","No")wait for element(<innertext="Não existe no Cadastro de Pessoas Jurídicas o número de CNPJ informado. Verifique se o mesmo foi digitado corretamente.">,60,"Appear")allow javascript("Yes")run javascript("document.getElementsByName(\'main\').style.background = \'White\';")wait(2)save browser image("{#path}\\test\\teste.jpg")wait(2)save element image(<name="main">,"{#path}\\test\\teste2.jpg")wait(2) Quote Link to post Share on other sites
hare ram 23 Posted August 7, 2019 Report Share Posted August 7, 2019 This is the wrong way to solve captcha this is recaptcha v2 and this you never solve this one..I think you are new in this one you need to watch and learn first all thing.. Quote Link to post Share on other sites
willyanmoreira 0 Posted August 7, 2019 Author Report Share Posted August 7, 2019 This is the wrong way to solve captcha this is recaptcha v2 and this you never solve this one..I think you are new in this one you need to watch and learn first all thing.. Yes im knew, but the code i need to do is simple, not like the one i post, but its a simple routine When i run, this solve captcha with 2captcha like i said, its a simple code to demonstrate the site problem. When it solve the captcha and load the subsequent page, i try to save browser image and save element image and it brings the captcha page. Quote Link to post Share on other sites
willyanmoreira 0 Posted August 7, 2019 Author Report Share Posted August 7, 2019 About recaptcha, this site has an option "Captcha Sonoro" to open the normal captcha (this is what im using in my code) Quote Link to post Share on other sites
hare ram 23 Posted August 7, 2019 Report Share Posted August 7, 2019 When i run it it crashed bro in my end i am not using ubot browser i am using exbrowser for bot made... 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.