microsoft / EasyRepro

Automated UI testing API for Dynamics 365
MIT License
512 stars 285 forks source link

[BUG] Sample Project won't build - missing NuGet package: Selenium.WebDriver.ChromeDriver - Visual Studio 2022 #1420

Open bwmodular opened 3 weeks ago

bwmodular commented 3 weeks ago

Bug Report

EasyRepro Version N/A

UCI or Classic Web N/A

Online or On Premise N/A

Browser N/A

Describe the bug
Clone the latest version of the UIAutomation repo. Open the Solution in Visual Studio 2022. Build.

The Microsoft.Dynamics365.UIAutomation.Sample does not build.

This error is given: This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\packages\Selenium.WebDriver.ChromeDriver.113.0.5672.6300\build\Selenium.WebDriver.ChromeDriver.targets.

Full NuGet restore does not help.

Code to reproduce
N/A

Expected behavior
The project should build, or if there are additional steps to carry out, these should be documented in the 'Getting Started' wiki page.

Screenshots
image

Additional context
I've tried installing the latest Selenium.WebDriver.ChromeDriver from Nuget.

TakamitsuEndo commented 1 week ago

Open Microsoft.Dynamics365.UIAutomation.Sample.csproj and find below

<Error Condition="!Exists('..\packages\Selenium.WebDriver.ChromeDriver.113.0.5672.6300\build\Selenium.WebDriver.ChromeDriver.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Selenium.WebDriver.ChromeDriver.113.0.5672.6300\build\Selenium.WebDriver.ChromeDriver.targets'))" />

Modify the version number to match the version of your Selenium.WebDriver.ChromeDriver package (you can find the version in NuGet package manager or in the same .csproj.