第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

找到 reCAPTCHA 元素并點擊它——Python + Selenium

找到 reCAPTCHA 元素并點擊它——Python + Selenium

qq_遁去的一_1 2021-09-25 16:10:40
我需要幫助。有網(wǎng)址:https://www.inipec.gov.it/cerca-pec/-/pecs/companies。我需要點擊復(fù)選框驗證碼: 我的代碼看起來像:import os, urllib.request, requests, datetime, time, random, ssl, json, codecs, csv, urllibfrom urllib.request import Request, urlopenfrom urllib.request import urlretrievefrom datetime import datetimefrom selenium import webdriverfrom selenium.webdriver.common.keys import Keysfrom selenium.common.exceptions import NoSuchElementExceptionfrom selenium.webdriver.common.by import Byfrom selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as ECfrom selenium.common.exceptions import NoAlertPresentExceptionfrom selenium.webdriver.chrome.options import Optionschromedriver = "chromedriver"os.environ["webdriver.chrome.driver"] = chromedriverchrome_options = webdriver.ChromeOptions()driver = webdriver.Chrome(executable_path=chromedriver, chrome_options=chrome_options)driver.get("https://www.inipec.gov.it/cerca-pec/-/pecs/companies")driver.switch_to_default_content()element = driver.find_elements_by_css_selector('iframe')[1]driver.switch_to_frame(element)driver.find_elements_by_xpath('//*[@id="recaptcha-anchor"]/div[1]').click()在執(zhí)行過程中,出現(xiàn)錯誤:driver.find_elements_by_xpath('//*[@id="recaptcha-anchor"]/div 1 ').click() AttributeError: 'list' 對象沒有屬性 'click'請幫助修復(fù)它。
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 325 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號