I am trying to extract some data from a site which loads the data using ajax and I am using selenium along with python for this.I want to click on a link which appears after an ajax page load. I have even put sleep function of python so that the page loads completely, but still not able to click. This error comes every time "selenium.common.exceptions.NoSuchElementException: Message: no such element".Please see the following code which I have written. Thanks
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
import time
import subprocess
from selenium.webdriver.chrome.options import Options
chromeOptions = webdriver.ChromeOptions()
prefs = {"download.default_directory" : "C:/Users/212553509/Desktop/WHO"}
chromeOptions.add_experimental_option("prefs",prefs)
chromedriver = "C:/python27/Scripts/chromedriver.exe"
driver = webdriver.Chrome(executable_path=chromedriver, chrome_options=chromeOptions)
driver.get("http://apps.who.int/gho/data/node.home")
time.sleep(20)
driver.find_element_by_link_text('node.main.484?lang=en').click()