Skip to content

Commit

Permalink
Add XPath strategy for locating elements
Browse files Browse the repository at this point in the history
  • Loading branch information
skyline-gleb committed Oct 13, 2015
1 parent 222e9ad commit 33fd98d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scripts/setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ $msbuildProperties = @{
'Configuration' = $configuration
}

$modulesUrl = 'https://raw.githubusercontent.com/skyline-gleb/dev-help/v0.2.0/psm'
$modulesUrl = 'https://raw.githubusercontent.com/skyline-gleb/dev-help/v0.2.1/psm'

if (!(Get-Module -ListAvailable -Name PsGet))
{
Expand Down
2 changes: 2 additions & 0 deletions src/Winium.Desktop.Driver/Extensions/ByHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ public static By GetStrategy(string strategy, string value)
return By.Name(value);
case "class name":
return By.AutomationProperty(AutomationElementIdentifiers.ClassNameProperty, value);
case "xpath":
return By.XPath(value);
default:
throw new NotImplementedException(
string.Format("'{0}' is not valid or implemented searching strategy.", strategy));
Expand Down
4 changes: 2 additions & 2 deletions src/Winium.Desktop.Driver/Winium.Desktop.Driver.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@
<HintPath>..\packages\InputSimulator.1.0.4.0\lib\net20\WindowsInput.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Winium.Cruciatus, Version=2.7.0.22816, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Winium.Cruciatus.2.7.0\lib\net45\Winium.Cruciatus.dll</HintPath>
<Reference Include="Winium.Cruciatus, Version=2.7.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Winium.Cruciatus.2.8.0\lib\net45\Winium.Cruciatus.dll</HintPath>
<Private>True</Private>
</Reference>
</ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/Winium.Desktop.Driver/packages.config
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="CommandLineParser" version="1.9.71" targetFramework="net451" userInstalled="true" />
<package id="ILMerge.Tools" version="2.14.1208" />
<package id="InputSimulator" version="1.0.4.0" targetFramework="net451" />
<package id="Newtonsoft.Json" version="6.0.8" targetFramework="net45" userInstalled="true" />
<package id="NLog" version="3.1.0.0" targetFramework="net451" />
<package id="Selenium.WebDriver" version="2.46.0" targetFramework="net451" userInstalled="true" />
<package id="Winium.Cruciatus" version="2.7.0" targetFramework="net451" />
<package id="ILMerge.Tools" version="2.14.1208" />
<package id="Winium.Cruciatus" version="2.8.0" targetFramework="net451" />
</packages>

0 comments on commit 33fd98d

Please sign in to comment.