title: XPath Invalid Selector Error
body: <p>I can't see why I get an invalid selector error in my XPath syntax here:</p>
  
  <p>The given selector <code>/*/tbody[@id='custContainer']/tr/td/a(starts-with(@href, 'Customers/')</code> is either invalid or does not result in a WebElement. The following error occurred:
  [InvalidSelectorError] Unable to locate an element with the xpath expression <code>/*/tbody[@id='dgContainer']/tr/td/a(starts-with(@href, 'Customers/')</code> because of the following error:
  [Exception... "The expression is not a legal expression."  code: "51" nsresult: "0x805b0033 (NS_ERROR_DOM_INVALID_EXPRESSION_ERR)"  location: "resource://fxdriver/modules/atoms.js Line: 2398"]</p>
  
  <p>This is a call I'm doing in Selenium using By.XPath.  I also tried // instead of /*/ for the start of that path but not sure which to use...not sure of that's the problem or if it's some other part of my string here.</p>
  
  <p>I also tried contains instead of starts-with.</p>
  
  <p>FYI I'm new to Selenium and XPath....</p>