我正在尝试单击linkedin( http://www.linkedin.com/people/pymk?trk=nmp-pymk-new_pymk_title)中“您可能认识的人”页面的连接按钮
此按钮的 html 代码是:
<a class="vcard-button bt-connect bt-primary" href="#"><span> </span>Connect</a>
我试图这样做:
buttons=driver.find_elements_by_css_selector("a[class='vcard-button bt-connect bt-primary']")
然后为列表中的每个元素调用函数 click()。但是我不断收到同样的错误:
selenium.common.exceptions.WebDriverException: Message: u'unknown error: Element is not clickable at point (473, 14). Other element would receive the click: <input name="keywords" id="main-search-box" class="search-term" type="text" value="" autocomplete="off" placeholder="Search for people, jobs, companies, and more...">
(Session info: chrome=30.0.1599.101)
(Driver info: chromedriver=2.2,platform=Windows NT 6.1 SP1 x86_64)'
有人知道我在做什么错吗?