Untitled
unknown
plain_text
a year ago
1.4 kB
3
Indexable
Never
def register(self,mail_add=None,username=None): months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] days = list(range(1, 29)) years = list(range(1970, 2005)) self.driver.get('https://discord.com/register') self.driver.find_element(By.XPATH,f'//input[contains(@name,"email")]').send_keys(mail_add) time.sleep(random.uniform(0.5,1.5)) self.driver.find_element(By.XPATH, f'//input[contains(@name,"username")]').send_keys(username) time.sleep(random.uniform(0.5,1.5)) self.driver.find_element(By.XPATH, f'//input[contains(@name,"password")]').send_keys('') time.sleep(random.uniform(0.5,1.5)) self.driver.find_element(By.XPATH, f'//input[contains(@aria-label,"Month")]').send_keys(random.choice(months)+Keys.ENTER) time.sleep(random.uniform(0.5,1.5)) self.driver.find_element(By.XPATH, f'//input[contains(@aria-label,"Day")]').send_keys(random.choice(days)) time.sleep(random.uniform(0.5,1.5)) self.driver.find_element(By.XPATH, f'//input[contains(@aria-label,"Year")]').send_keys(random.choice(years)) time.sleep(random.uniform(0.5, 1.5)) self.driver.find_element(By.XPATH,f'//button[contains(@type,"submit")]').click()