I\'m trying to add contacts on LinkedIn using Python and Selenium. I\'m attempting to do so by adding the contact suggestions made by LinkedIn in the \"Network\" tab (https:
The way you are trying to use find_element_by_class_name locator is not correct as this locator doesn't support compound classes within.
You need to use either xpath or cssSelector if class attribute have more then one class name :
driver.find_element_by_xpath("//button[@class='mn-person-card__person-btn-ext button-secondary-medium']").click()