-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathteste_auxilio_emer.py
More file actions
35 lines (28 loc) · 1013 Bytes
/
teste_auxilio_emer.py
File metadata and controls
35 lines (28 loc) · 1013 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from selenium.webdriver import Firefox
from time import sleep
browser = Firefox(executable_path='geckodriver.exe')
browser.get('https://auxilio.caixa.gov.br/#/inicio')
# Acessar página de Acompanhamento da Solitação
sleep(5)
button_acom_solitacao = browser.find_element_by_class_name('secundario')
button_acom_solitacao.click()
# Dados
cpf = ''
nome = ''
data_nasc = ''
nome_mae = ''
sleep(3)
input_cpf = browser.find_element_by_id('mat-input-0').send_keys(cpf)
sleep(3)
input_nome = browser.find_element_by_id('mat-input-1').send_keys(nome)
sleep(3)
input_data_nasc = browser.find_element_by_id('mat-input-2').send_keys(data_nasc)
sleep(3)
input_nome_mae = browser.find_element_by_id('mat-input-3').send_keys(nome_mae)
# Click checkbox recaptcha
sleep(10)
checkbox_recaptcha = browser.find_element_by_xpath("//span[@id='recaptcha-anchor']").click()
# Click em Continuar
sleep(3)
button_continuar = browser.find_element_by_class_name('normal')
button_continuar.click()