Skip to content

Commit

Permalink
Adding a piece of doc to clarify XPath search contexts. Fixes issue 3234
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Oct 18, 2013
1 parent 581bd37 commit 9f1a7b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dotnet/src/webdriver/By.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ public static By Name(string nameToFind)

/// <summary>
/// Gets a mechanism to find elements by an XPath query.
/// When searching within a WebElement using xpath be aware that webdriver follows standard conventions:
/// a search prefixed with "//" will search the entire document, not just the children of this current node.
/// Use ".//" to limit your search to the children of this WebElement.
/// </summary>
/// <param name="xpathToFind">The XPath query to use.</param>
/// <returns>A <see cref="By"/> object the driver can use to find the elements.</returns>
Expand Down

0 comments on commit 9f1a7b6

Please sign in to comment.