# step 3
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
# Initialize WebDriver
driver = webdriver.Chrome()
driver.get('https://public.tableau.com/app/profile/jennifer.dawes/viz/DataArtCMYKEmbroidery-Rectangles/2')
time.sleep(5)
tableau_public_link1 = driver.find_element(By.CSS_SELECTOR,'#root > div > div._content_919mw_7 > div._discovercontainer_1k454_2 > div > div:nth-child(3) > div > ul > li:nth-child(1) > div > div._upper_x9m2c_143 > a._title_x9m2c_118')
tableau_public_link1.click()
time.sleep(5)
tableau_public_link2 = driver.find_element(By.CSS_SELECTOR,'#root > div > div._content_919mw_7 > div._homeHeaderContainer_kv7ag_23 > div > div._vizControlBar_kv7ag_57 > button:nth-child(4)')
tableau_public_link2.click()
time.sleep(10)
tableau_public_link3 = driver.find_element(By.CSS_SELECTOR, 'button[data-tb-test-id="DownloadCrosstab-Button"]')
tableau_public_link3.click()
time.sleep(10)
# Close the browser
driver.quit()
python selenium: Okay so I wanna go to the tableau
link(‘https://public.tableau.com/app/profile/jennifer.dawes/viz/DataArtCMYKEmbroidery-Rectangles/2’), click on download –> crosstab –> csv and download, currently can’t go beyond download dropdown and I get stuck there no matter what I try.
New contributor
DARKLORD is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.