1
Greetings !
I want to open all the elements (not repeated) of a class, each in a new tab, how do I do it ? My attempt:
lista_elementos = driver.find_elements_by_class_name('card-action')
for i in lista_elementos:
if i not in acessados:
acessados.append(i)
i.send_keys(Keys.CONTROL + 't')
else:
break
Another attempt, but this element "i" replaces the main tab I’m using, and that’s not what interests me
lista_elementos = driver.find_elements_by_class_name('card-action')
for i in lista_elementos:
if i not in acessados:
acessados.append(i)
i.click()
else:
break