Python 当我在程序中点击facebook链接时,如何打开弹出窗口?

Python 当我在程序中点击facebook链接时,如何打开弹出窗口?,python,webdriver,Python,Webdriver,我有一个问题,当我点击facebook时,它不会进入窗口登录弹出窗口 创建于2014年11月3日 @作者:thinksysuser ''' 我认为,在你的css中需要修改按钮才能被点击。 请替换代码 driver.find_element_by_css_selector("div.pluginButton:nth-child(1)").click() 与 driver.find_element_by_css_selector("div.pluginButton:nth-child(1)").

我有一个问题,当我点击facebook时,它不会进入窗口登录弹出窗口

创建于2014年11月3日

@作者:thinksysuser '''


我认为,在你的css中需要修改按钮才能被点击。 请替换代码

driver.find_element_by_css_selector("div.pluginButton:nth-child(1)").click() 

driver.find_element_by_css_selector("div.pluginButton:nth-child(1)").click() 
driver.find_element_by_css_selector("div.pluginButton:nth-child(1) button").click()