Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
[ID: 1223087]
[ID: 1223134]
Milestone(s) impacted by this issue. [ID: 1223085]
[ID: 1223084]
[ID: 1223086]
[ID: 1223031]
Platform
Platform>DevTools
Platform>DevTools>Browser Automation
Platform>DevTools>Browser Automation>ChromeDriver
[ID: 1253656]
Supplemental component tags only. Set main component first. [ID: 1222907]
[ID: 1223136]
Design doc to be reviewed. [ID: 1223032]
This field contains Gerrit urls of code changes that ‘fix’ a security bug (i.e., excluding logging/cleanup commits) and is used when a singular fix cannot be uniquely identified from the existing “Code Changes” field. The change can be in the chromium repo or any other third_party repo. [ID: 1358989]
Link to incidents in IRM as a result of this ticket. [ID: 1300460]
[ID: 1223034]
[ID: 1223088]
View issue level access limits(Press Alt + Right arrow for more information)
Estimated effort
Unintended behavior
View staffing
Description
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.action_chains import ActionChains import time
Caminho do ChromeDriver (substitua pelo seu caminho real)
driver_path = 'CAMINHO/DO/SEU/CHROMEDRIVER'
Iniciando o navegador
driver = webdriver.Chrome(executable_path=driver_path)
Acessar a página de solicitação de visto da VFS Global (substitua pela URL real)
driver.get('URL_DO_SITE_DA_VFS_GLOBAL')
Aguarde o carregamento da página
time.sleep(3)
Selecionar categoria nacional (alterar conforme necessário)
categoria_nacional = driver.find_element(By.ID, 'ID_DO_CAMPO_CATEGORIA') # Modifique o ID conforme a página categoria_nacional.click()
Clicar no botão de continuar (ajuste conforme a página)
continuar_btn = driver.find_element(By.XPATH, '//button[text()="Continuar"]') # Ajuste o XPath conforme o botão continuar_btn.click()
Aguarde para garantir que a próxima página carregue
time.sleep(3)
Preencher os campos com os dados solicitados
nome = driver.find_element(By.ID, 'ID_CAMPO_NOME') # Substitua pelo ID correto nome.send_keys('Seu Nome')
sobrenome = driver.find_element(By.ID, 'ID_CAMPO_SOBRENOME') # Substitua pelo ID correto sobrenome.send_keys('Seu Sobrenome')
genero = driver.find_element(By.ID, 'ID_CAMPO_GENERO') # Substitua pelo ID correto genero.click() # Se for um campo de seleção, como rádio ou dropdown
data_nascimento = driver.find_element(By.ID, 'ID_CAMPO_NASCIMENTO') # Substitua pelo ID correto data_nascimento.send_keys('DD/MM/AAAA')
numero_passaporte = driver.find_element(By.ID, 'ID_CAMPO_PASSAPORTE') # Substitua pelo ID correto numero_passaporte.send_keys('123456789')
validade_passaporte = driver.find_element(By.ID, 'ID_CAMPO_VALIDADE') # Substitua pelo ID correto validade_passaporte.send_keys('DD/MM/AAAA')
email = driver.find_element(By.ID, 'ID_CAMPO_EMAIL') # Substitua pelo ID correto email.send_keys('seuemail@dominio.com ')
Clicar no botão de continuar novamente
continuar_btn = driver.find_element(By.XPATH, '//button[text()="Continuar"]') # Ajuste o XPath conforme necessário continuar_btn.click()
Aguarde o processamento da solicitação
time.sleep(5)
Fechar o navegador
driver.quit()