Created
September 2, 2020 07:39
-
-
Save aakashb95/0084358b222524e89037846fa67005fb to your computer and use it in GitHub Desktop.
join CDAC zoom calls from terminal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Needs geckodriver | |
# run: python cdac_zoom.py <link> | |
from selenium import webdriver | |
from selenium.webdriver import ActionChains | |
from selenium.webdriver.common.keys import Keys | |
import sys, time | |
link = sys.argv[1] | |
# open firefox -> set zoom as default application for zoom links | |
# then, go to about:support | |
# copy profile directory path and paste in below variable. close browser | |
firefox_profile = '/home/aakash/.mozilla/firefox/mvq5xf29.default-release' | |
fp = webdriver.FirefoxProfile(firefox_profile) | |
driver = webdriver.Firefox(fp) | |
#change details accordingly | |
fname = "Aakash Bakhle" | |
lname = "DAI_8001" | |
mail = "[email protected]" | |
driver.get(link) | |
time.sleep(5) | |
first_name = driver.find_element_by_id("question_first_name") | |
first_name.send_keys(fname) | |
last_name = driver.find_element_by_id("question_last_name") | |
last_name.send_keys(lname) | |
email = driver.find_element_by_id("question_email") | |
email.send_keys(mail) | |
confirm_email = driver.find_element_by_id("question_confirm_email") | |
confirm_email.send_keys(mail) | |
element = driver.find_element_by_id('btnSubmit') | |
element.send_keys(Keys.RETURN) | |
# ActionChains(driver).click(element).perform() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment