0

Refer to the following code:

public partial class Form1 : Form
{          
    ChromeOptions options = new ChromeOptions();
    //this not working 
    ChromeDriver driver = new ChromeDriver(options);

    // but this is working
    ChromeDriver driver = new ChromeDriver();  
  
    public Form1()
    {
        InitializeComponent();
    }

Is there a way to use ChromeOptions in whole program instead of writing it each time?

Luke Hamilton
  • 637
  • 5
  • 19

0 Answers0