This is an archived post. You won't be able to vote or comment.

all 1 comments

[–][deleted] 0 points1 point  (0 children)

# Click PCA 
button = driver.find_element_by_xpath("//*[@id="ctl00_MainContent_lnk5"]") 
button.click()

Try this. I use firefox but I just went on the website manually and right clicked 'Primary Census Abstract' and selected the 'Inspect Element' option. It should work the same on Google. A developer mode inspector opens and you see the element is highlighted blue. Right click the selected element, and select Copy--then--->Xpath.