Commit 259fdf17 authored by Minkush's avatar Minkush

add salsa registration script

parent 8fe72983
# -*- coding: utf-8 -*-
from selenium import webdriver
from import By
from import WebDriverWait
from import expected_conditions as EC
from selenium.webdriver.common.keys import Keys
# Extract the Firefox driver and place in the same folder as this file.
browser = webdriver.Firefox()
# Salsa new account registration website's URL
# In GUI, the email, name would already be stored from sign-up module
# Then, user only needs to enter username and password
def create_salsa_account(user_name, full_name, user_email):
username = browser.find_element_by_id('username_prefix')
name = browser.find_element_by_id('name')
email = browser.find_element_by_id('email')
pwd = browser.find_element_by_id('password')
cpwd = browser.find_element_by_id('confirm')
submit = \
browser.find_element_by_xpath('//input[@value = "Register account"]')
if __name__ == '__main__':
user_name = input('Enter username: ')
full_name = input('Enter Name: ')
user_email = input('Enter email: ')
user_password = input('Enter password: ')
create_salsa_account(user_name, full_name, user_email)
print('Congrats! Your new Salsa account has been created.')
print('Check your mail for further instructions')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment