国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

使用selenium時(shí)遇到的報(bào)錯(cuò)selenium.common.exceptions.WebDriverException: Message: Service xxxxstaus:1詳解及解決方法詳解

這篇具有很好參考價(jià)值的文章主要介紹了使用selenium時(shí)遇到的報(bào)錯(cuò)selenium.common.exceptions.WebDriverException: Message: Service xxxxstaus:1詳解及解決方法詳解。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問(wèn)。

在開(kāi)始之前,分享一下使用selenium常遇到的幾個(gè)問(wèn)題和報(bào)錯(cuò):

1.首先就是版本問(wèn)題的報(bào)錯(cuò):selenium.common.exceptions.NoSuchWindowException: Message:? ? no such window: target window already closed。遇到這種情況,就是chromedriver的版本和Chrome版本不對(duì)應(yīng)造成的,解決方法是:

首先要打開(kāi)Chrome,在右上角打開(kāi)設(shè)置,然后進(jìn)去關(guān)于chrome查看瀏覽器版本,如圖所示:

使用selenium時(shí)遇到的報(bào)錯(cuò)selenium.common.exceptions.WebDriverException: Message: Service xxxxstaus:1詳解及解決方法詳解,反爬,selenium,chrome,python

?使用selenium時(shí)遇到的報(bào)錯(cuò)selenium.common.exceptions.WebDriverException: Message: Service xxxxstaus:1詳解及解決方法詳解,反爬,selenium,chrome,python

然后找到瀏覽器的版本后,打開(kāi)chromedriver的官網(wǎng)

(http://chromedriver.storage.googleapis.com/index.html),找到與瀏覽器相同的版本,進(jìn)行下載

ps:如果沒(méi)有一樣的版本就找到最接近的版本進(jìn)行下載。如圖所示:

使用selenium時(shí)遇到的報(bào)錯(cuò)selenium.common.exceptions.WebDriverException: Message: Service xxxxstaus:1詳解及解決方法詳解,反爬,selenium,chrome,python

使用selenium時(shí)遇到的報(bào)錯(cuò)selenium.common.exceptions.WebDriverException: Message: Service xxxxstaus:1詳解及解決方法詳解,反爬,selenium,chrome,python

2. 第二個(gè)問(wèn)題:selenium.common.exceptions.WebDriverException: Message: Service xxxxstaus:1

今天爬取淘寶時(shí)發(fā)現(xiàn)會(huì)有滑塊驗(yàn)證,然后參考了網(wǎng)上的一些,其中有一個(gè)是改變chromedriver中的某個(gè)字符串的值,今天親測(cè)了一下,沒(méi)有用具體的解決辦法是使用第三方庫(kù)pyautogui移動(dòng)鼠標(biāo)到滑塊上并實(shí)現(xiàn)拖動(dòng)具體的用法可以去搜一下。參考網(wǎng)上的改了值以后發(fā)現(xiàn)就包這個(gè)錯(cuò)誤selenium.common.exceptions.WebDriverException: Message: Service xxxxstaus:1查了半天也沒(méi)找出問(wèn)題,后面卸載了chromedriver重新安裝了一下,問(wèn)題就解決了文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-650455.html

到了這里,關(guān)于使用selenium時(shí)遇到的報(bào)錯(cuò)selenium.common.exceptions.WebDriverException: Message: Service xxxxstaus:1詳解及解決方法詳解的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來(lái)自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred 報(bào)錯(cuò)

    selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred 報(bào)錯(cuò)

    selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output. Stacktrace: UnknownError: An unknown server-side error occurred while processing t

    2024年02月16日
    瀏覽(52)
  • 解決:selenium.common.exceptions.WebDriverException: Message: ‘chromedriver‘ execu

    解決:selenium.common.exceptions.WebDriverException: Message: ‘chromedriver‘ execu

    運(yùn)行爬蟲(chóng)代碼出現(xiàn)上面的bug bug詳細(xì)信息如下 ?解決方法 如下 1.先打開(kāi)chrome 輸入 “chrome://version/”來(lái)查看chrome版本 如圖我的是96 ? 2.然后訪問(wèn)此網(wǎng)站??http://chromedriver.storage.googleapis.com/index.html?? 然后選擇合適版本的driver? ?我這邊是windows版本的系統(tǒng)所以下載? win32版本的壓縮

    2024年02月16日
    瀏覽(24)
  • 已解決selenium.common.exceptions.WebDriverException: Message: invalid session id

    已解決selenium.common.exceptions.WebDriverException: Message: invalid session id

    已解決selenium循環(huán)翻頁(yè)拋出selenium.common.exceptions.WebDriverException: Message: invalid session id的正確解決方法,親測(cè)有效?。?! 粉絲群里面的一個(gè)小伙伴遇到問(wèn)題跑來(lái)私信我,想用selenium循環(huán)翻頁(yè),但是發(fā)生了報(bào)錯(cuò)(當(dāng)時(shí)他心里瞬間涼了一大截,跑來(lái)找我求助,然后順利幫助他解決了,

    2023年04月08日
    瀏覽(27)
  • selenium.common.exceptions.WebDriverException: Message: chrome not reachable解決方法

    在 python上使用 selenium 。 一開(kāi)始還算順利,但是隨著反復(fù)執(zhí)行,處理量變多了。 如果一直等待,最終會(huì)出現(xiàn)無(wú)法訪問(wèn) chrome 的錯(cuò)誤。 已經(jīng)添加了driver.quit()。 引入一個(gè)新的函數(shù),檢查是否有 chrome 驅(qū)動(dòng)程序正在運(yùn)行,并打印提示,如果有,則殺死所有chrome 驅(qū)動(dòng)程序。 相當(dāng)于在

    2024年02月16日
    瀏覽(19)
  • python-selenium ”selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find

    1、確認(rèn)當(dāng)前的Google Chrome版本號(hào)與chromedriver版本號(hào)一致,如果不一致,到http://chromedriver.storage.googleapis.com/index.html下載與當(dāng)前chrome瀏覽?器對(duì)應(yīng)的驅(qū)動(dòng)。 http://selenium-release.storage.googleapis.com/index.html?selenium下載地址; 2、將chromedriver.exe文件放入python的scripts目錄,并將該scripts目錄

    2024年02月04日
    瀏覽(24)
  • 【selenium.common.exceptions.WebDriverException: Message: ‘geckodriver‘ ...】【 [WinError 2] 系統(tǒng)找不到指定的文】

    【selenium.common.exceptions.WebDriverException: Message: ‘geckodriver‘ ...】【 [WinError 2] 系統(tǒng)找不到指定的文】

    目錄 一、問(wèn)題描述 二、問(wèn)題分析 1、異常一: 2、異常二: 3、分析 三、解決方法 1、geckodriver的下載 2、檢查代碼 四、驗(yàn)證 前言 ????????Selenium的腳本可以控制瀏覽器進(jìn)行操作,可以實(shí)現(xiàn)多個(gè)瀏覽器的調(diào)用,包括 IE (7 、 8 、 9 、 10 、 11 )、 Firefox 、 Safari 、 Google Chr

    2024年02月15日
    瀏覽(18)
  • selenium.common.exceptions.WebDriverException: Message: ‘chromedriver’ executable needs to be in PAT

    selenium.common.exceptions.WebDriverException: Message: ‘chromedriver’ executable needs to be in PAT

    selenium.common.exceptions.WebDriverException: Message: ‘chromedriver’ executable needs to be in PATH. Please see。。。 1. 查看本機(jī)Chrome瀏覽器版本 2. 去下載chromedriver 下載地址1(我登不上去): chromedriver.storage.googleapis.com/index.html 下載地址2: https://registry.npmmirror.com/binary.html?path=chromedriver/ 找到對(duì)

    2024年02月09日
    瀏覽(28)
  • selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary解決合集

    selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary解決合集

    由于pycharm找不到chrome瀏覽器或者是chromedriver瀏覽器驅(qū)動(dòng)。 一.下載對(duì)應(yīng)版本Chromedriver放到python的安裝路徑下 1.查看谷歌瀏覽器的版本 ? 2. 瀏覽器中打開(kāi):https://npm.taobao.org/mirrors/chromedriver/并下載對(duì)應(yīng)步驟1版本的瀏覽器驅(qū)動(dòng), 一般只需要大版本對(duì)應(yīng)即可, 3.找到python和chrome的

    2024年02月14日
    瀏覽(50)
  • selenium.common.exceptions.WebDriverException: Message: ‘chromedriver‘ executable needs to be in PAT

    selenium.common.exceptions.WebDriverException: Message: ‘chromedriver‘ executable needs to be in PAT

    最近需要使用一下selenium,剛運(yùn)行就報(bào)錯(cuò)了。。。 前提準(zhǔn)備: 1.安裝selenium 2.下載chrome對(duì)應(yīng)版本的chromedriver 代碼就是一個(gè)簡(jiǎn)單的demo: 運(yùn)行報(bào)錯(cuò): 網(wǎng)上說(shuō)要把chromedriver放到環(huán)境變量,放進(jìn)去還是報(bào)錯(cuò)?。?然后就直接看源碼吧: 這個(gè)過(guò)程很繁瑣,很枯燥,嫌廢話連篇請(qǐng)直接翻到文

    2024年01月20日
    瀏覽(16)
  • 已解決selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary

    已解決selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary

    已解決selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary 粉絲遇到bug私信我,selenium模塊啟動(dòng)谷歌瀏覽器,但是發(fā)生了報(bào)錯(cuò)(當(dāng)時(shí)他心里瞬間涼了一大截,跑來(lái)找我求助,然后順利幫助他解決了,順便記錄一下希望可以幫助到更多遇到這個(gè)bug不會(huì)解決的

    2023年04月08日
    瀏覽(44)

覺(jué)得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包