What is the difference between single and double slash in Xpath


    • Keymaster
      VNTesters on #3645

      /
      1. start selection from the document node
      2. allows you to create ‘absolute’ path expressions
      3. e.g. “/html/body/p” matches all the paragraph elements

      //
      1. start selection matching anywhere in the docume
      2. allows you to create ‘relative’ path expressions
      3. e.g. “//p” matches all the paragraph elements

      Reply
Reply To: What is the difference between single and double slash in Xpath
Your information: