-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjoinMeet.py
26 lines (24 loc) · 975 Bytes
/
joinMeet.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from selenium.webdriver.common.by import By
# Turn off video and select virtual device for audio input
def turnMicCamOff(driver):
driver=driver
driver.find_element(By.CLASS_NAME, 'video-preview').click()
driver.implicitly_wait(10)
print("Cam off")
driver.find_element(By.ID, 'audio-settings-button').click()
driver.implicitly_wait(10)
micDevices=driver.find_elements(By.CLASS_NAME, 'audio-preview-entry')
for micDevice in micDevices:
if "VB-Audio" in micDevice.text or "BlackHole" in micDevice.text:
micDevice.click()
break
print("Mic input set to virtual device output")
driver.find_element(By.ID, 'audio-settings-button').click()
driver.implicitly_wait(10)
# Joining meet
def joinNow(driver):
driver=driver
driver.find_element(By.CLASS_NAME, 'field').send_keys("MusicBot")
driver.find_element(By.CLASS_NAME, 'jss19').click()
driver.implicitly_wait(100)
print("Joining meet")