Ask to join in Google meet Selenium

你离开我真会死。 提交于 2021-02-11 17:38:45

问题


i am working on a an api project

there is a part in it which takes input from the user about Google meeting code and enter him to the google meeting

the real problem is when i give it instructions to click on the button of Ask to join

i have tried this :

1.        driver.find_element_by_xpath(
            "//button[text()='Ask to join']").click()
2.        driver.find_element_by_xpath(
            '//*[@id="yDmH0d"]/div[3]/div/div[2]/div[3]/div/span/span').click()
3.        i also tried using class name

every method best to my knowledge I have used them

also i cannot find help on this topic anywhere

i am banging my head on this piece from last 2 days but cannot find a solution to it

if anyone can help !! please tell if i should include anything else for reference


回答1:


Use below XPath.

//div[@role='button']//span[contains(text(), 'Ask to join')]


来源:https://stackoverflow.com/questions/63752334/ask-to-join-in-google-meet-selenium

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!