XPathDuplicateAnalyzer 1.0.41
dotnet add package XPathDuplicateAnalyzer --version 1.0.41
NuGet\Install-Package XPathDuplicateAnalyzer -Version 1.0.41
<PackageReference Include="XPathDuplicateAnalyzer" Version="1.0.41"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="XPathDuplicateAnalyzer" Version="1.0.41" />
<PackageReference Include="XPathDuplicateAnalyzer"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add XPathDuplicateAnalyzer --version 1.0.41
#r "nuget: XPathDuplicateAnalyzer, 1.0.41"
#:package XPathDuplicateAnalyzer@1.0.41
#addin nuget:?package=XPathDuplicateAnalyzer&version=1.0.41
#tool nuget:?package=XPathDuplicateAnalyzer&version=1.0.41
XPathDuplicateAnalyzer for C#
A Roslyn Analyzer for detecting duplicate XPath functions in the same file of the form "Locator(yourXpath);".
Getting started
Install the package from NuGet, clean your solution, rebuild it, and the analyzer will detect duplicate XPath functions in the same class.
Warnings will show up in the format:
Code: XPathDuplicate Description: FunctionName1 (line number) | FunctionName2 (line number)
Prerequisites
This analyzer is built for C# projects using the Roslyn compiler. It uses the Roslyn API to analyze the syntax tree of your code and uses .Net Standard 2.0.
Duplicate XPath Example
These two lines of code are considered duplicates because they both use the same XPath "//div[@name='uxThresholdFormat001SubmitButton']".
Line 35: public ILocator BtnSubTreshold00() ⇒ Locator("//div[@name='uxThresholdFormat001SubmitButton']");
Line 68: public ILocator TxtCurrTreshPerc00() ⇒ Locator("//input[@name='uxThresholdFormat001SubmitButton']");
Code: XPathDuplicate Description: BtnSubTreshold00 (35) | TxtCurrTreshPerc00 (68)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.41 | 279 | 2/12/2026 |
| 1.0.40 | 108 | 2/12/2026 |
| 1.0.39 | 113 | 2/12/2026 |
| 1.0.38 | 311 | 12/4/2025 |
| 1.0.37 | 209 | 12/4/2025 |
| 1.0.36 | 205 | 12/4/2025 |
| 1.0.35 | 209 | 12/4/2025 |
| 1.0.34 | 205 | 12/3/2025 |
| 1.0.33 | 202 | 12/3/2025 |
| 1.0.32 | 415 | 11/20/2025 |
| 1.0.31 | 411 | 11/19/2025 |
| 1.0.30 | 414 | 11/19/2025 |
| 1.0.29 | 471 | 11/13/2025 |
| 1.0.28 | 296 | 7/26/2024 |
| 1.0.27 | 155 | 7/25/2024 |
| 1.0.26 | 150 | 7/25/2024 |
| 1.0.25 | 155 | 7/25/2024 |
| 1.0.24 | 150 | 7/24/2024 |
| 1.0.23 | 150 | 7/24/2024 |
| 1.0.22 | 161 | 7/24/2024 |