C# C Sharp Selenium ChromeDriver user profile indication

Employer
no avatar
User blocked by Admin
Description

C# C Sharp Selenium ChromeDriver, Windows

ChromeDriver creates a temporary user profile each time. The purpose of the fix is to point to an existing profile so that the settings and plugins of that profile work in the controlled Chrome instance.

Correctly implement:

var options = new ChromeOptions();

options.AddArguments(“--user-data-dir=C:-user-directory=AppData”); options.AddArgument(“--profile-directory=Default”);

The application includes an iteration counter that resets every n loops.

Bug: if the link is wrong on the last iteration before the counter resets, the counter stands and reset does not occur regardless of the number of loops executed. If the link is wrong on any other iteration, the counter considers that iteration correctly.

Published
on 2024-11-06
Category

Offers sent (4)

Budget
Negotiable
Copyright
-
Expires in
30 days

Recent jobs from category