I have tried many ways to click on 'Ask to join' button on google meet using selenium. Here are some ways i already tried if you know any other way please help me out. tried 1 tried 2 tried 3
code snippet that i already tried:
btn = browser.find_element((By.XPATH, "//span[contains(text(),'Ask to join')]"))
browser.execute_script("arguments[0].click();", btn)
try:
join_button = WebDriverWait(browser, 36).until(EC.presence_of_element_located((By.XPATH, "//span[contains(text(),'Join now')]")))
browser.execute_script("arguments[0].click();", join_button)
except TimeoutException:
try:
join_button = WebDriverWait(browser, 36).until(EC.presence_of_element_located((By.XPATH, "//span[contains(text(),'Ask to join')]")))
browser.execute_script("arguments[0].click();", join_button)
except TimeoutException:
print("Couldn't join Google Meet. Are you sure you have the right code?")
join_butt = WebDriverWait(browser, delay).until(EC.presence_of_element_located((By.XPATH, "//span[contains(text(),'Ask to join')]")))
driver.execute_script("arguments[0].click();", join_butt)
thanks in advance!!!!!!