Is there a more efficient way of reading classes with the same name, rather than doing what im doing, i basically go through a code with index, because they all have the same name, is there a better way if selecting elements with the same class name, rather than the way i am doing it
Z = len(driver.find_elements_by_class_name('Class_With_Names'))
for x in range(Z):
x += 1
thisClass = driver.find_element_by_xpath(f"//ul[@class='same_name']/div[{str(x)}]")
classText = thisClass.find_element_by_class_name("class_with_text")
print(classText.text)