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:
You should use find_elements for finding all elements with same class Try this to get all elements:
find_elements
elements = driver.find_elements_by_class_name("mn-person-card__person-btn-ext.button-secondary-medium")
then use a for loop to click each of them. For example:
for e in elements: e.click()