一个关于股票的网站有一个漂亮的图表,上面有几个显示图表的选项(参见https://www.boerse.de/chart-tool/HeidelbergCement-Aktie/DE0006047004)。我总是需要不同股票的图表,但图表的设置总是相同的,所以我想自动选择图表的设置。例如,我总是希望在图表类型<select id = "types"的选择框中选择"Barchart“(<option value = "Balken"> Bar-Chart </option>)选项。但我无法控制图表中的选项。可能是因为它是一个
我正在尝试为Cisco Webex控制集线器制作一个网络刮板。由于登录页面和后续页面使用Javascript,因此我使用Selenium Python库来完成此任务。不幸的是,我无法找到文本框并使用Selenium登录按钮元素。 from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import
我正在尝试使用selenium和python在搜索框中输入一些文本。代码在下面。如果选择“超级联赛”的话,它的运作将非常完美,直到最后一刻。尽管当输入此文本时,它会以预定义选项的形式出现在框中,但当我在want...If中导航时,我无法选择并单击它,您可以单击“超级联赛”选项,然后加载一个新页面。我似乎无法复制这个
import time
from selenium import webdriver
from selenium.common.exceptions import NoSuchAttributeException
from selenium.webdriver.common.key
我试图从一个名为Correios的网站获取所有数据,在这个网站中,我需要处理一些下拉式,我遇到了一些问题:它不能从第一个dropbox信息中获得所有的值。
from selenium import webdriver
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.su
我想在python和selenium库中使用chrome;但是,我在python控制台中打开webdriver时遇到了问题。它正在查找路径并打开它似乎是一个浏览器的内容,它还启动了一个在端口####上侦听的服务,但当我这样做的时候。
driver.get('http://www.google.com')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'driver' is not define