Skip to content

Commit

Permalink
Convert canopy to use sizzle selector engine instead of normal WebDri…
Browse files Browse the repository at this point in the history
…ver By.CssSelector.
  • Loading branch information
gkinsman committed Sep 3, 2013
1 parent efd84a8 commit 6e836a1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion canopy/canopy.fs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ open OpenQA.Selenium.Firefox
open OpenQA.Selenium
open OpenQA.Selenium.Support.UI
open OpenQA.Selenium.Interactions
open SizSelCsZzz
open Microsoft.FSharp.Core.Printf
open System.IO
open System
Expand Down Expand Up @@ -143,7 +144,7 @@ let waitFor (f : unit -> bool) =
//find related
let private findByCss cssSelector f =
try
f(By.CssSelector(cssSelector)) |> List.ofSeq
f(BySizzle.CssSelector(cssSelector)) |> List.ofSeq
with | ex -> []

let private findByXpath xpath f =
Expand Down
8 changes: 8 additions & 0 deletions canopy/canopy.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@
<ItemGroup>
<Reference Include="mscorlib" />
<Reference Include="FSharp.Core" />
<Reference Include="Newtonsoft.Json">
<HintPath>..\..\packages\Newtonsoft.Json.5.0.6\lib\net40\Newtonsoft.Json.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="SizSelCsZzz">
<HintPath>..\..\packages\SizSelCsZzz.0.3.34.0\lib\SizSelCsZzz.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
Expand Down
2 changes: 2 additions & 0 deletions canopy/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Newtonsoft.Json" version="5.0.6" targetFramework="net40" />
<package id="Selenium.Support" version="2.35.0" targetFramework="net40" />
<package id="Selenium.WebDriver" version="2.35.0" targetFramework="net40" />
<package id="SizSelCsZzz" version="0.3.34.0" targetFramework="net40" />
</packages>

0 comments on commit 6e836a1

Please sign in to comment.