How to open multiple tabs from href list?

Viewed 58

So I have got all my target href links but I don't know how to open multiple tabs from that href list where each tab should have the same code running.

driver.get('my website')

elem_list = driver.find_element_by_xpath('//*[@id="page-watch"]/div[5]/div/span')
eps = elem_list.find_elements_by_tag_name('a')

for ep in eps:
    episode = ep.get_attribute('href')
    #print(episode)
0 Answers
Related