how can i set system properties in C#.
In java i can use:
System.setProperty("webdriver.chrome.driver","/path/to/where/you/ve/put/chromedriver.exe");
how to do this in C#?
Programmatically, a system property can be set using the setProperty method of the System object, and also via the setProperty method of the Properties object that can be obtained from System via getProperties.
Find the "My Computer" icon on the computer's desktop or access it from the "Start" menu. Right-click the "My Computer" icon. From the menu, choose "Properties" down at the bottom. A window will come up which will provide some specs.
Right-click This PC in your Desktop, and click Properties to launch the System properties dialog. Or use keyboard shortcut - WinKey + Pause-Break.
try System.Environment.SetEnvironmentVariable("webdriver.chrome.driver",@"/path/to/where/you/ve/put/chromedriver.exe")
-MSDN
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With