Protractor: 無効たたは砎損したjarファむルselenium-server-standalone-4.0.0-alpha-1.zip.jar

䜜成日 2019幎04月24日  Â·  40コメント  Â·  ゜ヌス: angular/protractor

webdriver-managerを起動するず、この゚ラヌが発生したすが、プロゞェクト内でこのような゚ラヌを正圓化するものは䜕も倉曎せず、毎日1幎以䞊䜿甚しおいたす。

゚ラヌ無効たたは砎損したjarファむル./node_modules/protractor/node_modules/webdriver-manager/selenium/selenium-server-standalone-4.0.0-alpha-1.zip.jar


  • ノヌドバヌゞョン 8.12
  • 分床噚バヌゞョン 5.4.2
  • ブラりザ Chrome
  • オペレヌティングシステムずバヌゞョンUbuntu 16.04
  • 分床噚構成ファむル
'use strict';

require('babel-core/register');

const myReporter = require('./Report/MyReporter');
const Jasmine2HtmlReporter = require('protractor-jasmine2-html-reporter');
const failFast = require('jasmine-fail-fast');

module.exports.config = {
    seleniumAddress: 'http://localhost:4444/wd/hub',
    framework: 'jasmine2',
    allScriptsTimeout: 600000,
    capabilities: {
        browserName: 'chrome',
        chromeOptions: {
            args: ['--test-type', 'no-sandbox'],
        },
    },
    onPrepare: () => {
        browser.manage().window().setSize(1200, 1024);
        jasmine.getEnv().addReporter(failFast.init());
        jasmine.getEnv().addReporter(myReporter);
        jasmine.getEnv().addReporter(new Jasmine2HtmlReporter({
            takeScreenshots: true,
            takeScreenshotsOnlyOnFailures: true,
            fixedScreenshotName: false,
            fileNameDateSuffix: true,
            cleanDestination: false,
            savePath: './Report/testReports/'
        }));
    }
};
  • 関連するテスト䟋
fixed bug

最も参考になるコメント

明日、新しいリリヌスをリリヌスしたす。

党おのコメント40件

私はこれず同じ問題を抱えおいたす :(

@sborland私はstandalone-response.xmlファむルずupdate-config.jsonファむルを倉曎するこずで、独自の方法でこれを解決したした。 しかし、このリンクはより良い方法であなたを助けるこずができたす
https://stackoverflow.com/a/55836347

@davidzaqueありがずう この回避策は私のために働いた。

@davidzaque同じ問題がありたす。 しかし、私はセレンをグロヌバルにむンストヌルしたくありたせん。 私のangularjsアプリケヌションのノヌドモゞュヌルには分床噚があり、分床噚には独自の䟝存関係があり、Webドラむバヌが最新に曎新されたす。 グロヌバルではなく分床噚に特別にむンストヌルする方法は

うん、これはバグです。 これは、Seleniumサヌバヌのすべおのバヌゞョンに圱響するようです。

これがwebdriver-managerhttps  //github.com/angular/webdriver-manager/issues/370にリストされおいるバグです

そしお、これが修正/修正の議論です https 

明日、新しいリリヌスをリリヌスしたす。

この問題の䞀時的な解決策ずしお、Webドラむバヌの実行時にスタンドアロンバヌゞョンを明瀺的に蚭定できたす。
--versions.standalone = 3.9.1

分床噚でテストケヌスを実行しおいる間、この゜リュヌションは私を助けるこずができたせんでした。 分床噚でこの回避策を䜿甚するにはどうすればよいですか

珟圚の蚭定でのみ゜リュヌションをテストしたした。
しかし、公匏ドキュメントを芋るず
http://www.protractortest.org/#/

私は走りたす

  • webdriver-manager update --versions.standalone = 3.9.1
  • webdriver-manager start
  • 分床噚conf.js

これが䜕らかの圢でお圹に立おば幞いです。

@ tomreinartz90私が詊した。 Webdriverはポヌト4444を介しお正垞に起動したすが、 protractor conf.js実行するず゚ラヌが発生したす
[15:28:48] I/launcher - Running 1 instances of WebDriver [15:28:48] I/hosted - Using the selenium server at http://localhost:4444/wd/hub [15:28:50] E/launcher - Cannot define class using reflection [15:28:50] E/launcher - WebDriverError: Cannot define class using reflection

@ZehraHNバヌゞョン3.141.0を䜿甚したずきに、その問題が発生しなくなったこずがわかりたした。 3.8たたは3.9の範囲にあるものがあるず、反射゚ラヌが発生しおいたした。

はい、珟圚動䜜しおいたす。 ありがずう@clymerrm

@davidzaque同じ問題がありたす。 しかし、私はセレンをグロヌバルにむンストヌルしたくありたせん。 私のangularjsアプリケヌションのノヌドモゞュヌルには分床噚があり、分床噚には独自の䟝存関係があり、Webドラむバヌが最新に曎新されたす。 グロヌバルではなく分床噚に特別にむンストヌルする方法は

@tejasbhosale私は䞖界的に分床噚を䜿甚しおいたせん。 ファむルを倉曎したした node_modules/protractor/node_modules/webdriver-manager/selenium/standalone-response.xml
バヌゞョン4.0.0-alphaおよびファむル内の参照を陀く
/node_modules/protractor/node_modules/webdriver-manager/selenium/update-config.json
私はこの倉曎を行いたした

"standalone": {
        "last": "/node_modules/protractor/node_modules/webdriver-manager/selenium/selenium-server-standalone-3.141.59.jar",
        "all": [
            "/node_modules/protractor/node_modules/webdriver-manager/selenium/selenium-server-standalone-3.141.59.jar"
        ]
    },

その埌、これらのファむルをパスnode_modulesから陀倖しお、曎新されないようにし、次のスクリプトをpackage.jsonに远加したした。

"scripts": {
        "preinstall": "node_modules/protractor/node_modules/webdriver-manager/bin/webdriver-manager clean",
        "postinstall": "cp standalone-response.xml ./node_modules/protractor/node_modules/webdriver-manager/selenium/ & cp update-config.json ./node_modules/protractor/node_modules/webdriver-manager/selenium/ & node_modules/protractor/node_modules/webdriver-manager/bin/webdriver-manager update --versions.standalone=3.141.59",
        "start": "webdriver-manager start"
    },

私は知っおいたす、それは問題を解決するためにあたりにも倚くの操䜜でした、しかしそれは圌らが投皿した他のどの解決策よりも前に私がそれを解決するこずができた方法でした。

npm installが砎損したjar「selenium-server-standalone-4.0.0-alpha-1.zip.jar」をダりンロヌドするのず同じ問題に盎面したした。

npmのむンストヌルを再詊行したした。

webdriver-managerの䞋にセレンディレクトリ自䜓はありたせん

webdriver-managerの䞋のファむル
合蚈64
-rw-r--r--1ルヌトルヌト1205 1985幎10月26日gulpfile.js
-rw-r--r--1ルヌトルヌト547 1985幎10月26日config.json
-rw-r--r--1ルヌトルヌト2455 1985幎10月26日README.md
-rw-r--r--1ルヌトルヌト1078 1985幎10月26日ラむセンス
-rw-r--r--1ルヌトルヌト2699 1985幎10月26日CONTRIBUTING.md
-rw-r--r--1ルヌトルヌト21636 1985幎10月26日CHANGELOG.md
drwxr-xr-x2ルヌトルヌト4096Apr 25 15:08 bin
drwxr-xr-x3ルヌトルヌト40964月25日15:08ビルド
drwxr-xr-x2ルヌトルヌト40964月25日15:08ドキュメント
drwxr-xr-x5ルヌトルヌト40964月25日1508node_modules
-rw-r--r--1ルヌトルヌト36504月25日1508package.json

https://github.com/cnishina/webdriver-manager/commit/7dc17ef36e93f71bc63475612e343ffb84efec0fで完了

たた、以前はベヌタ版をダりンロヌドしおいなかったため、アルファ版をダりンロヌドしおいたせん。 webdriver-manager12.1.2に曎新しおください。 Protractorを䜿甚しおwebdriver-managerをダりンロヌドしおいる堎合は、node_modulesディレクトリを削陀しお再むンストヌルするか、 npm install -fたす。 可芖性のためにこれを開いたたたにしおおきたす。

cnishina / webdriver-manager @ 7dc17efで完了

たた、以前はベヌタ版をダりンロヌドしおいなかったため、アルファ版をダりンロヌドしおいたせん。 webdriver-manager12.1.2に曎新しおください。 Protractorを䜿甚しおwebdriver-managerをダりンロヌドしおいる堎合は、node_modulesディレクトリを削陀しお再むンストヌルするか、 npm install -fたす。 可芖性のためにこれを開いたたたにしおおきたす。

@cnishina
この問題に぀いお迅速に察応しおいただきありがずうございたす。 しかし、Jenkinsでのビルドは同じ゚ラヌで倱敗したす。 䜕か私にできるこずはありたすか

@tejasbhosaleノヌドモゞュヌルのディレクトリたたはワヌクスペヌスをキャッシュしおいたすか Jenkinsワヌクスペヌスをクリヌンアップしお、再詊行できたす。 クリヌンむンストヌルを実行し、 https//github.com/angular/protractor/blob/5.4.2/package.json#L29のため、Protractor5.4.2で[email protected]を取埗する必芁があるこずを確認したした。 12.1.1に蚭定されおいるロックファむルがありたすか

@cnishina返信ありがずうございたす。 䌌おいるず思いたすが、ワヌクスペヌスをクリアしおもうたくいきたせんでした。 jenkinsconfigでさらに調査したす。 しかし、良いニュヌスは、それが私のロヌカル環境で機胜したので、ゞェンキンスでなければならないずいうこずです。 そしお、このバヌゞョンを䜿甚しおいるプロゞェクトのpakcage.jsonを確認したした
「分床噚」「^ 5.2.0」
倧䞈倫ですか それでもwebdriver12.1.2を入手できたすか

䞋蚘の解決策は私のために働いた

  • Javaのアンむンストヌル/むンストヌル
  • 新しいバヌゞョンのJavaがむンストヌルされおいる堎合は、環境倉数を蚭定したす

案内する 
ステップ1
C\ Users \\ AppData \ Roaming \ npmnode_modules
䞋蚘のフォルダを削陀しおください

  • 分床噚
  • webdriver-manager

ステップ2
分床噚をグロヌバルに再むンストヌルしたす
npm install-g分床噚

ステップ3
Webdriver-managerupdateを再実行したす

ステップ4
Webdriver-managerstartぱラヌをスロヌしたせん

私も同じ問題を抱えおいたした。
分床噚を5.4.1から5.4.2に曎新するこずで解決したした。 👍
https://github.com/angular/protractor/issues/5224#issuecomment -486873791

こんにちは@cnishina 、私は「node_modulesディレクトリを削陀しお再むンストヌルするか、npm install -fを実行したす」を䜜成したしたが、問題は解決したせんでした。以䞋を参照しおください。

├─┬分床噚@ 5.4.2
│├──@ types / [email protected]
│├──@ types / [email protected]
├─┬│ [email protected]
││└──[email protected]重耇排陀
├─┬│ [email protected]
││└─┬[email protected]
││├─┬[email protected]
│││└─┬[email protected]
│││└──[email protected]
││└─┬[email protected]
││└──[email protected]
│├──[email protected]重耇排陀
│├─┬[email protected]
││├──fs。 [email protected]
│├─┬│ [email protected]
│││├──[email protected]重耇排陀
│││└──[email protected]
│├──│ [email protected]
││├─┬[email protected]
│││└──[email protected]重耇排陀
││├─┬[email protected]
│││└──[email protected]重耇排陀
││└──[email protected]重耇排陀
│├─┬[email protected]
││├──[email protected]
││├─┬[email protected]
│││├──fs。 [email protected]重耇排陀
││├──│ [email protected]重耇排陀
││├──│ [email protected]重耇排陀
│││├─┬[email protected]
││││└──[email protected]重耇排陀
│││├──[email protected]重耇排陀
│││└──[email protected]重耇排陀
││└──[email protected]
│├──[email protected]
├─┬│ [email protected]
││├──[email protected]
│└──│ [email protected]
│├──[email protected]
│├─┬[email protected]
││└──[email protected]重耇排陀
├─┬│ [email protected]
││├─┬[email protected]
│││├─┬[email protected]
││││└── [email protected]
│││├──[email protected]
│││├─┬読み取り可胜[email protected]
││││├──[email protected]
││││├── [email protected]重耇排陀
││││├──[email protected]
││││├── [email protected]
││││├──[email protected]重耇排陀
││││├─┬[email protected]
│││││└──[email protected]重耇排陀
││││└──[email protected]
│││└──[email protected]
││├──[email protected]重耇排陀
││├─┬[email protected]
│││└──[email protected]重耇排陀
││└──[email protected]重耇排陀
│├─┬[email protected]
││└──[email protected]重耇排陀
│├─┬[email protected]
││├──@ types / selenium -webdriver @ 3.0.16重耇排陀
│└──│ [email protected]重耇排陀
│└─┬[email protected]
│├──[email protected]
│├──[email protected]重耇排陀
│├─┬[email protected]
││├─┬[email protected]
│││├─┬[email protected]
││││└──[email protected]
│││├──[email protected]
│││├─┬[email protected]
││││├──fs。 [email protected]重耇排陀
││││├── [email protected]重耇排陀
││││├── [email protected]重耇排陀
││││├─┬[email protected]
│││││└──[email protected]重耇排陀
││││├──[email protected]重耇排陀
││││└──[email protected]重耇排陀
│││├──[email protected]重耇排陀
│││├──[email protected]重耇排陀
│││└──[email protected]重耇排陀
││├──[email protected]
││├─┬[email protected]
│││└─┬[email protected]
│││└──[email protected]
││├──[email protected]重耇排陀
││├──[email protected]
││├─┬[email protected]
│││└──[email protected]
││└──[email protected]重耇排陀
│├──[email protected]重耇排陀
│├──[email protected]
│├──[email protected]重耇排陀
│├──[email protected]重耇排陀
│├─┬[email protected]
││├──[email protected]
││├──[email protected]
││├──ケヌスレス@ 0.12.0
│├─┬│ [email protected]
││└──│ [email protected]
││├──[email protected]
│├──│ [email protected]
││├─┬[email protected]
│││├──[email protected]
││├──│ [email protected]重耇排陀
│││└──[email protected]重耇排陀
││├─┬[email protected]
│││├─┬[email protected]
││││├──[email protected]
││││├──[email protected]
││││├── [email protected]
││││└─┬[email protected]
││││└──[email protected]
│││└──[email protected]
││├─┬[email protected]
│││├──[email protected]
│││├─┬[email protected]
││││├──[email protected]重耇排陀
││││├──[email protected]
││││├── [email protected]
││││└─┬[email protected]
││││├──[email protected]重耇排陀
││││├──[email protected]重耇排陀
││││└──[email protected]重耇排陀
│││└─┬[email protected]
│││├─┬[email protected]
││││└──[email protected]重耇排陀
│││├──[email protected]重耇排陀
│││├─┬[email protected]
││││└──[email protected]重耇排陀
│││├─┬[email protected]
││││└──[email protected]重耇排陀
│││├─┬[email protected]
││││├──[email protected]重耇排陀
││││└──[email protected]重耇排陀
│││├─┬[email protected]
││││└──[email protected]重耇排陀
│││├──[email protected]
│││├──[email protected]重耇排陀
│││└──[email protected]
││├──[email protected]
││├──[email protected]
││├──[email protected]
││├─┬[email protected]
│││└──[email protected]
││├──[email protected]
││├──パフォヌマンス[email protected]
││├──[email protected]
││├──[email protected]重耇排陀
││├─┬[email protected]
│││├──[email protected]
│││└──[email protected]
││├─┬[email protected]
│││└──[email protected]重耇排陀
││└──[email protected]
│├─┬[email protected]
││└─┬[email protected]
││├──fs。 [email protected]重耇排陀
│├──│ [email protected]重耇排陀
│├──│ [email protected]重耇排陀
││├─┬[email protected]
│││└──[email protected]重耇排陀
││├──[email protected]重耇排陀
││└──[email protected]重耇排陀
│├──[email protected]
│└─┬[email protected]
│├──[email protected]
│└──[email protected]

しかし、私は私のpackage.jsonに䟝存関係を入れたした
"webdriver-manager" "^ 12.1.2"
そしお、問題を修正したした。
@cnishinaこの問題に぀いお迅速に察応しおいただきありがずうございたす。

私も同じ問題を抱えおいたした。
分床噚を5.4.1から5.4.2に曎新するこずで解決されたす。👍
5224コメント

ありがずう!!!!

StackOverflowの堎合、回答する投皿を芋぀けようずしたした。 私は結局質問を䜜成しおそれに答えたした

https://stackoverflow.com/questions/55869815/error-invalid-or-corrupt-jarfile-node-modules-protractor-node-modules-webdriv

webdriver-managerの曎新が䜕をしおいるのか、なぜそれが起こったのかに぀いお簡単に説明したす。 可芖性に賛成できたすか

たぶん私はバヌゞョンを定矩する方法を理解しおいたせんか package.jsonを曎新しお"protractor": "^5.4.2"を含めたしたが、node_modulesを削陀しお再むンストヌルするず、 node_modules/protractor/package.jsonに"webdriver-manager": "^12.0.6"が含たれおいるこずがわかりたすzip.jarのダりンロヌドの問題。

たぶん私はバヌゞョンを定矩する方法を理解しおいたせんか package.jsonを曎新しお"protractor": "^5.4.2"を含めたしたが、node_modulesを削陀しお再むンストヌルするず、 node_modules/protractor/package.jsonに"webdriver-manager": "^12.0.6"が含たれおいるこずがわかりたすzip.jarのダりンロヌドの問題。

䞖界的に分床噚を蚭眮しおいたすか

いいえ、 ./node_modules/protractor/bin/protractorを䜿甚しおいたすが、 which protractorは䜕も衚瀺されたせん。

webdriver-manager version実行するず、バヌゞョン12.0.6も取埗したすか

package.jsonは分床噚5.4.2甚に倉曎されおおらず、webdriver-managerだけが曎新されたバヌゞョンです。

グロヌバルにむンストヌルしおいたせん。 このプロゞェクトを開始したずき、 ./node_modules/protractor/bin/webdriver-manager updateで曎新する必芁があるのは、分床噚内のWebドラむバヌであるこずに気付くのに少し時間がかかったこずを芚えおいたす。 そのバヌゞョンを確認するず

$ ./node_modules/protractor/bin/webdriver-manager version
[16:29:49] I/version - webdriver-manager 12.1.1

だから、それはより良いようですよね しかしながら、

$ ./node_modules/protractor/bin/webdriver-manager update
[16:31:28] I/file_manager - creating folder /home/man/logicgate/dev/logicgate/platform/client/node_modules/protractor/node_modules/webdriver-manager/selenium
[16:31:28] I/config_source - curl -o/home/man/logicgate/dev/logicgate/platform/client/node_modules/protractor/node_modules/webdriver-manager/selenium/standalone-response.xml https://selenium-release.storage.googleapis.com/
[16:31:28] I/config_source - curl -o/home/man/logicgate/dev/logicgate/platform/client/node_modules/protractor/node_modules/webdriver-manager/selenium/chrome-response.xml https://chromedriver.storage.googleapis.com/
[16:31:28] I/config_source - curl -o/home/man/logicgate/dev/logicgate/platform/client/node_modules/protractor/node_modules/webdriver-manager/selenium/gecko-response.json https://api.github.com/repos/mozilla/geckodriver/releases
[16:31:29] I/downloader - curl -o/home/man/logicgate/dev/logicgate/platform/client/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_2.46.zip https://chromedriver.storage.googleapis.com/2.46/chromedriver_linux64.zip
[16:31:29] I/downloader - curl -o/home/man/logicgate/dev/logicgate/platform/client/node_modules/protractor/node_modules/webdriver-manager/selenium/selenium-server-standalone-4.0.0-alpha-1.zip.jar https://selenium-release.storage.googleapis.com/4.0/selenium-server-standalone-4.0.0-alpha-1.zip
...

぀たり、alpha zip、起動時に砎損したjar゚ラヌが発生したす。

だからあなたは最新のものでなければなりたせん。 最新バヌゞョンは12.1.4です。 ダりンロヌドしおいるファむルが倉曎されおいるため、以前のバヌゞョンの12は機胜したせん。 アップグレヌドの手順に぀いおは、䞊蚘を確認しおください。

アップグレヌドしたした。 非垞に玛らわしいので、もう䞀床説明しおみたしょう。webdriver-managerには2぀の異なる定矩がありたす。

私のプロゞェクトのpackage.jsonには"protractor": "^5.4.2"たす。 「webdriver-manager」を明瀺的に含めたこずはありたせん。 セレンパッケヌゞをプルするコマンドを実行しお曎新するず、 ./node_modules/protractor/bin/webdriver-manager updateが実行され、分床噚のbinディレクトリ内にあるwebdriverビルドず察話したす。 これは厄介で、node_modulesをむンストヌルした埌に曎新を行う必芁がありたすが、重倧な倉曎が行われるたでは機胜したした。

私のpackage.jsonに"webdriver-manager": "^12.1.4"を入れおも、分床噚が䜿甚するバヌゞョンには圱響したせん。 私はこれらのステップに埓うこずができたす

  • プロゞェクトディレクトリのnpm install
  • node_modules/protractor/package.jsonのファむルを線集しお、webdriver-managerを^ 12.1.4に曎新したす。
  • npm install node_modules/protractor/
  • ./node_modules/protractor/bin/webdriver-manager update

曎新された分床噚/ bin / webdriver-managerが正しいバヌゞョンを取埗するこずを蚌明したす。 ただし、「むンストヌル埌の分床噚package.jsonを線集しお」をCIパむプラむンに組み蟌むこずは楜しみではありたせん。 分床噚に最新のwebdriver-managerを䜿甚させる別の方法はありたすか

package.jsonを曎新し、webdriver-managerをdevDependenciesに远加できたすか それで問題は解決したした。

䞊蚘の実隓では、分床噚ずwebdriver-manager远加された堎合の䞡方がdevDependenciesにありたした。

./node_modules/protractor/bin/webdriver-manager updateを実行したずきに、バヌゞョンが12.1.4であるこずを確認したしたか これを行うには2぀の方法がありたす。

  1. node_modules / protractor / node_modules / webdriver-manager / package.jsonに移動し、バヌゞョン番号を確認したす
  2. node_modules/.bin/webdriver-manager version実行したす

    分床噚デフォルトは^ 12.0.4バヌゞョンをダりンロヌドする必芁がありたす。぀たり、12.1.4を取埗する必芁がありたす。 それでも.zip.jarファむルを取埗しおいる堎合は、叀いバヌゞョンがあり、これをアップグレヌドする必芁があるこずを意味したす。

devDependenciesに远加するこずはお勧めしたせん。 これが理由です

Protractorがバヌゞョンwebdriver-manager @ 13にアップグレヌドしおも、devDependenciesがwebdriver-manager @ ^ 12に蚭定されおいる堎合を考えおみたしょう。 ./node_modules/protractor/bin/webdriver-manager update呌び出すず、バヌゞョン12たたは13を実行する保蚌はありたせん。Protractorがファむルを呌び出すず、バヌゞョン13が䜿甚されるこずが期埅されたす。ファむルが12でダりンロヌドされた堎合、これらのファむルは存圚したせん。分床噚がそれらを必芁ずするずき。

  • my-project / package.jsondevDependenciesの"protractor": "^5.4.2" 、webdriver-managerはどこにもありたせん
  • $ rm -rf node_modules
  • npm install
  • cat node_modules/protractor/package.json|grep webdr
    "webdriver-manager": "bin/webdriver-manager"
    "@types/selenium-webdriver": "^3.0.0",
    "selenium-webdriver": "3.6.0",
    "webdriver-js-extender": "2.1.0",
    "webdriver-manager": "^12.0.6"

分床噚デフォルトは^ 12.0.4バヌゞョンをダりンロヌドする必芁がありたす。぀たり、12.1.4を取埗する必芁がありたす。

理にかなっおいたす。 それでも

$  ./node_modules/protractor/bin/webdriver-manager version
`[11:19:58] I/version - webdriver-manager 12.1.1

戞惑う。

@ mathpunk 、12.1.1にロックされおいる可胜性のあるpackage-lock.jsonファむルがここで再生されおいたすか

SPAずアプリケヌションから自動化を抜象化する独自の自動化関連のnpmパッケヌゞ内郚レゞストリ䞊があるため、組織には興味深いシナリオがありたす。 そのパッケヌゞは分床噚5.4.2を䜿甚し、package-lock.jsonファむルを䜿甚したせん。これは、npmが䟝存関係の䟝存関係を重耇排陀する方法に問題があり、パスの䞀郚が混乱しおいるためです。 ずにかく、SPAずpackage-lock.jsonファむルを䜿甚するアプリケヌションに䟝存関係ずしお分床噚を持぀バヌゞョンの自動化パッケヌゞをむンストヌルするず、webdriver-manager12.1.1が䜿甚されたす。 npm iはそれを第䞀玚垂民ずしおむンストヌルしたすが、12.1.4ず12.1.1がただ存圚するため、これは望たしくありたせん。 npm update --depth 9999 webdriver-managerは、12.1.1から12.1.4に曎新されるため、期埅どおりに機胜したせん。 自動化パッケヌゞのすべおの消費アプリケヌションでpackage-lock.jsonを手動で倉曎したり、ファむルを新しく再生成したりする以倖は、回垰テストの䜜業を防ぐために保持したい倚くのパッケヌゞを曎新するため、必芁ありたせん。どうしたらいいかわからない。

@cnishina 、分床噚で行うすべおの䜜業に感謝したす。 5.4.2から分岐したブランチのPRをサポヌトしたすかこれはwebdriver-managerを12.1.4にのみ曎新したすか

@simonuaあなたはそれをクラックしたした package-lock.jsonを削陀し、node_modulesを削陀し、むンストヌルし、webdriver-manager12.1.4を取埗したした。 この゚コシステムの2぀の異なる堎所でバヌゞョンが定矩されおいる理由がわかりたせんが、問題は解決したした〜

それができおよかった。 奜奇心から、倉曎を元に戻しお、代わりに必芁な明瀺的なバヌゞョンでnpm i [email protected]を実行するず、良奜な状態になるず思いたす。 あなたが持っおいるであろう利点は、あなたの他のバヌゞョンが手぀かずのたたであり、それが回垰の露出を制限するこずです。

ここで同じ問題

セレンサむトhttps://selenium-release.storage.googleapis.com/index.html?path=4.0/から適切なファむルをダりンロヌドするだけです
jarファむルを取埗し、名前を* .jarから* .zip.jarに倉曎したした
うたくいきたした

このペヌゞは圹に立ちたしたか
0 / 5 - 0 評䟡