0
I need to recover the url address when clicking on the link, I am using Selenium with chrome_options.add_argument("--headless")
My current code:
links = driver.find_elements_by_partial_link_text('Excel')
for link in links:
link.click()
tried to use the driver.current_url
but as a click if I use browser rendering it opens a new tab and then closes.
The idea is to download several files but as I am using the headless so I searched the best option would be to use a driver.get
directly in the URL when clicking on the link.
Wonder worked, and I cracked my head.
– Dieinimy Maganha