I want to automate the register process of opencart.com .But couldn't sort how to automate the image captcha option. Would be glad if get a solution

Viewed 32

https://www.opencart.com/index.php?route=account/register

This is the code that i have written till now:

from selenium import webdriver

from selenium.webdriver.common.by import By

from selenium.webdriver.chrome.service import Service

import random

driver = webdriver.Chrome()

driver.maximize_window()

driver.get("https://www.opencart.com/index.php?route=account/register")

username = driver.find_element(By.NAME, 'username')

username.send_keys("demo@gmail")

firstname = driver.find_element(By.NAME, 'firstname')

firstname.send_keys("Mahmud")

lastname = driver.find_element(By.NAME, "lastname")

lastname.send_keys("Chowdhury")

EMAIL = driver.find_element(By.XPATH, "//input[@id='input-email']")

EMAIL.send_keys("mahmudnsu155@gmail.com")

Country = driver.find_element(By.ID, "input-country")

Country.send_keys("Bangladesh")

Password = driver.find_element(By.ID, "input-password")

Password.send_keys("juku8675123")

0 Answers
Related