Reputation: 41
I have developed several programs with selenium chromedriver. Getting the correct path to chromedriver on end users computer is sometimes an issue, how can I include the chromedriver exe in the program file, that it should automatically deploy and able to be used with messing around with the path to the driver file.
Upvotes: 1
Views: 952
Reputation: 3471
this should get the file publishing with your installation. this all depends on how you are deploying, but with clickOnce or web deploy this will work. Ultimately setting the copy to output directory will get the exe into your bin folder on build.
If you need the location of the exe you should be able to use something like System.Reflection.Assembly.GetExecutingAssembly().Location
to get the location of where the execution is taking place.
Upvotes: 1