I use Python and the selenium libary. My problem is that on the internet page top.gg when you vote there is a H captcha that opens automaitically. The problem is I can't find a callback function. I use 2captcha to get the token. Does anyone have a clue how to solve such a H captcha. Or is there a hidden callback function. There is at least no submit button and if you press outside the captcha the captcha is closed and the vote process is terminated. And you have to vote again.
I already tried it with the add on from anycaptcha callback hooker Callback hooker. This uses this script in the console (document.getElementById('anycaptchaSolveButton').onclick('TOKEN_FROM_STEP_4');)
Problem is with me this always gives an error (
Uncaught TypeError: document.getElementById(...).onclick is not a function)
Related
im trying to solve a recaptcha from this website https://app.cfe.mx/aplicaciones/CCFE/SolicitudesCFE/Solicitudes/ConsultaTuReciboLuzGmx.aspx
I´ve already put the token inside captcha input (#g-recaptcha-response) however in this recaptcha there is no submit button, first I thought that this issue couldbe solved by finding the callback so the problem is that there is no callback...
so my question is when i put the token inside the captcha input is there any way to trigger the green check?
I've just started using Selenium and I can successfully fill a form and click the submit button using the examples code, however I get an error message (which only appears written in the website after submitting, not an actual coding error) which says "There has been an error, try again".
It seems to me the website somehow knows I'm not filling the form manually, and it doesn't like that.
Is that the case ? What can I do in such cases ?
EDIT: This is the website with the form I'm trying to submit:
https://www.alitalia.com/it_it/special-pages/richiesta-rimborso-volo-cancellato.html
Need some help about captcha solving with API. I use Python.
This is site where captcha is - https://www.inipec.gov.it/cerca-pec/-/pecs/companies
I use API (https://azcaptcha.com/document) to solve Captcha. When captcha has solved, the result needs to be paste in special form.
But there is no submit button to pass it.
THere is some advice in API documentation:
Sometimes there's no submit button and a callback function is used
isntead. The function is executed when reCaptcha is solved.
Callback function is usually defined in data-callback parameter of
reCaptcha, for example:
data-callback="myCallbackFunction"
My question is: what is callback function, and how can i do it in Python.
Thanks.
I am trying to login into a website using Selenium. The website is http://projecteuler.net/login.
from selenium import webdriver
browser = webdriver.Chrome()
browser.get('http://projecteuler.net/login')
username = browser.find_element_by_id('username')
username.send_keys(USERNAME_HERE)
password = browser.find_element_by_name('password')
password.send_keys(PASSWORD_HERE)
browser.find_element_by_name("login").submit()
The program is working correctly upto the last statement. I tried omitting the last statement and manually logged in and it worked. But when I added the last statement and ran the program it just seemed to reload the same page minus the information that I had placed via the program.
So it is only the submission that is giving problem. I viewed the source and confirmed whether there is some other element by that name but there was no other element by name "login". So what am I getting wrong here? Do I need to take care of something else also?
There is a weird thing happening. When I have done form submission via code and try to view the source in Google Chrome 33.0.1750.154 m I am getting the below.
Try click() instead of submit()
Submit is particularly useful for forms without submit buttons, e.g. single-input “Search” forms.
Source:-
http://selenium.googlecode.com/git/docs/api/py/selenium/selenium.selenium.html?highlight=submit#selenium.selenium.selenium.submit
In your case there is a submit button, better to just click it.
I'm using selenium in python to check the page of a website that uses basic authentication on one frame. I'm checking to see if the password I am entering is correct or not, so the basic authentication often gets stuck because the password is wrong. Normally I use sel.set_page_load_timeout(8) and then catch the exception thrown when the page takes too long, but because the page loads except for the one frame, this function is not throwing an exception, and the page is getting stuck. How can I break out of the page?
Solution: go to the url of the frame itself, and set page load timeout on that page