Jump to content
UBot Underground

Save Image And Browser Load Problems


Recommended Posts

This is a small version to replicate the problem

And 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)

Link to post
Share on other sites

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

Link to post
Share on other sites

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.

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