I want to press the green download button from this website: https://www.wikiloc.com/wikiloc/download.do?id=41057284
using selenium chrome driver. However nothing works.
I tried searching by xpath:
clone_box = driver.find_element_by_xpath('//*[@id="btn-download-file"]')
the selector:
clone_box = driver.find_element_by_xpath('#btn-download-file')
class names:
clone_box = driver.find_element_by_class_name('btn btn-lg btn-success')
Does Not work. Further investigation lead me to so called frame/iframe.
following code suppose to switch it to:
driver.switch_to_frame(driver.find_element_by_id("download-option"))
But it also doesn't work .
The question is, where is that frame/iframe ? and how to switch to it ?