Python Selenium Web驱动程序在websi中的更改页面

2024-09-28 16:23:31 发布

您现在位置:Python中文网/ 问答频道 /正文

我在试着翻阅书页。 在下面的代码中,我成功地选择了“搜索”按钮。在

from selenium import webdriver
from BeautifulSoup import *
import urllib
import re

browser = webdriver.Firefox()
browser.get('https://www.citius.mj.pt/portal/consultas/consultascire.aspx')

searchButton = browser.find_element_by_name('ctl00$ContentPlaceHolder1$btnSearch').click()

有人能帮忙吗?在


Tags: 代码fromhttpsimportbrowserregetwww