cezarypiatek / Tellurium

A utility pack to create maintainable and reliable UI tests using Selenium with additional support for ASP.NET MVC projects.
MIT License
34 stars 18 forks source link

SeleniumDriverInstaller restore driver in invalid path #40

Closed cezarypiatek closed 7 years ago

cezarypiatek commented 7 years ago

Driver path is saved in SeleniumWebdrivers.json relative to Solution location but restored in path relative to project file.

How to reproduce 1) Install Tellurium.SeleniumDriverInstaller nuget package 2) Invoke in nuget packge manager console

Install-SeleniumWebDriver -Browser Chrome

3) Remove Driver directory from your project 4) Invoke command

Restore-SeleniumWebDriver

Result: Restored webdriver is not in the same directory as the one which was deleted

Source of SeleniumDriverInstaller script are available here https://github.com/cezarypiatek/Tellurium/blob/master/Src/Tools/SeleniumDriverInstaller.psm1