javascriptpythonpython-3.xjss

Need help finding button id/class etc to click


I'm writing a Python script to enter MS Teams and join a class based on a schedule, and have very little to no knowledge of markup languages/ js.

enter image description here

This "Join" button is what i want to click.

When i click inspect on it, I get (Highlighted in blue):

enter image description here

My code to click the button:

driver.get(physics)
driver.find_element_by_xpath('//input[@class=""]').click()

need help finding the class/id/ anything to be honest, to click the button.

The rest of my code: code


Solution

  • You can find the details of the button from below the screenshot. But it is not recommended to use the classes for the same as they might be repetitive on the entire page.

    The button is highlighted in the inspector tools. Note: class root-160 is a dynamic class and you might not wanna use it. It will change per meeting/pages.

    Screenshot of button component