D
D
Dmitry Bashinsky2020-04-26 15:30:42
C++ / C#
Dmitry Bashinsky, 2020-04-26 15:30:42

How to use UserData in Selenoid?

Hello, I'm using Selenoid and I need to save a user session.
When I use

driverOptions.AddArgument($"--user-data-dir={path}");

I get an exception: unknown error: cannot create default profile directory
what is the problem I can’t understand, in the selenoid logs you can generally say empty

2020/04/26 12:22:23 [-] [NEW_REQUEST] [unknown] [134.249.126.131]
2020/04/26 12:22:23 [-] [NEW_REQUEST_ACCEPTED] [unknown] [134.249.126.131]
2020/04/26 12:22:23 [7876] [LOCATING_SERVICE] [chrome] []
2020/04/26 12:22:23 [-] [DEFAULT_VERSION] [Using default version: 81.0]
2020/04/26 12:22:23 [7876] [USING_DOCKER] [chrome] [81.0]
2020/04/26 12:22:23 [7876] [CREATING_CONTAINER] [selenoid/vnc_chrome:81.0]
2020/04/26 12:22:23 [7876] [STARTING_CONTAINER] [selenoid/vnc_chrome:81.0] [3f7dbd9ac8b4bd3054111f92ac8bf97852081d35f231323a32e20ccb3ef36f58]
2020/04/26 12:22:24 [7876] [CONTAINER_STARTED] [selenoid/vnc_chrome:81.0] [3f7dbd9ac8b4bd3054111f92ac8bf97852081d35f231323a32e20ccb3ef36f58] [0.32s]
2020/04/26 12:22:24 [7876] [SERVICE_STARTED] [selenoid/vnc_chrome:81.0] [3f7dbd9ac8b4bd3054111f92ac8bf97852081d35f231323a32e20ccb3ef36f58] [0.35s]
2020/04/26 12:22:24 [7876] [PROXY_TO] [3f7dbd9ac8b4bd3054111f92ac8bf97852081d35f231323a32e20ccb3ef36f58] [http://172.17.0.6:4444/]
2020/04/26 12:22:24 [7876] [SESSION_ATTEMPTED] [http://172.17.0.6:4444/] [1]
2020/04/26 12:22:24 [7876] [SESSION_FAILED] [http://172.17.0.6:4444/] [500 Internal Server Error]
2020/04/26 12:22:24 [7876] [REMOVING_CONTAINER] [3f7dbd9ac8b4bd3054111f92ac8bf97852081d35f231323a32e20ccb3ef36f58]
2020/04/26 12:22:24 [7876] [CONTAINER_REMOVED] [3f7dbd9ac8b4bd3054111f92ac8bf97852081d35f231323a32e20ccb3ef36f58]


Who did this please post!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question