linkstr = ''
for link in Listlinker:
    linkstr = link.get_attribute('href')
if linkstr in Domenesider:
    pass
elif str(HovedDomene) in linkstr:
    Domenesider.append(side)
accessing selenium web elements with python