I'm a newbie to Selenium/Python. Got stuck while trying to copy data. I'm trying to copy a data into a list. Each time I try to highlight the element name in XPath/CSS selectors, it always gives me a error saying "element not found". Could somebody help me out in finding the exact CSS selector/xpath for the same? Below is the code which I have tried for CSS selectors
browser.get("http://ae.bizdirlib.com/taxonomy/term/1493") # Load page
links =[]
link = browser.find_element_by_css_selector("h2 > a")
#for link in links:
link.send_keys(Keys.CONTROL + Keys.RETURN)
link.send_keys(Keys.CONTROL + Keys.PAGE_UP)
elem = browser.find_element_by_css_selector(".content.clearfix>div>fieldset>div>ul>li>span")
elem.send_keys("bar")
elem.send_keys(Keys.CONTROL, 'a') #highlight all in box
c=elem.send_keys(Keys.CONTROL, 'c') #copy
#elem.send_keys(Keys.CONTROL, 'v') #paste
print c