-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
org.openqa.selenium.InvalidArgumentException: invalid argument: user data directory is already in use #3
Comments
This case as well
|
SeleniumでChromeのユーザープロファイルを指定しつつ同時に自分もChromeを使う方法
うん、そのようですね。
うん、そのとおりですね。
Hidenatsuさんはその回避方法でいいでしょうが、わたしとしては、その方法がとりにくい。手動で作ったChromeのプロファイルをそのままSeleniumに参照させたいから。 ということは、わたしの場合、手動で開いたChromeをぜんぶ閉じてからSeleniumテスト(=Katalon Studioテスト)を実行せよという条件を付けることはいたしかたないと考えるべき。Exceptionメッセージのなかに「Chromeブラウザをぜんぶ閉じてからやりなおしなさい」というメッセージを表示して補いとするか。 |
Exceptionのメッセージが
といっているのを真に受けて、--user-data-dir=xxxx を指定するのを止めてみた。そしたらExceptionが発生しなくなった。 これでいいんじゃないの? |
…nvalid argument: user data directory is already in use
I was wrong. |
Cloning the user-data directory --- this may work. |
… a temp directory in order to work-around the contention of User Data directory
The following error occures when WebDriverFactory tries to open a Chrome browser specifying a User profile or directory AND another Chrome is already running with the User profile or directory.
This error is inevitable, but not so much easy to understand and see how to get work-around.
If possible, want to check if collision is to happen, and emit more friendly message.
The text was updated successfully, but these errors were encountered: