title: How do I extract the title attribute and the text using xpath or css selector?
body: <p>From the below code i would like to fetch the text  "Manager".
  The first and third line contains the word "Manager".</p>
  
  <pre><code>&lt;a id="HieararchyDropdownTreePCPPerformanceBusinessUnitIdHierarchyDropdownWidget_3_a" class="level2" treenode_a="" onclick="" target="_blank" style="" title="Manager" xpath="1"&gt;
  &lt;span id="HieararchyDropdownTreePCPPerformanceBusinessUnitIdHierarchyDropdownWidget_3_ico" title="" treenode_ico="" class="button ico_close" style="width:0px;height:0px;"&gt;&lt;/span&gt;
  &lt;span id="HieararchyDropdownTreePCPPerformanceBusinessUnitIdHierarchyDropdownWidget_3_span" class="node_name"&gt;Manager&lt;/span&gt;
  &lt;/a&gt;
  </code></pre>
  
  <p>I tried with the following 3 xpath but none of it is giving the text "Manager".</p>
  
  <pre><code>(xpath ="//span[@id='HieararchyDropdownTreePCPPerformanceBusinessUnitIdHierarchyDropdownWidget_3_span']/text())
  (xpath ="//*[@id=\"HieararchyDropdownTreePCPPerformanceBusinessUnitIdHierarchyDropdownWidget_3_a\"]")
  (xpath ="//span[@id='HieararchyDropdownTreePCPPerformanceBusinessUnitIdHierarchyDropdownWidget_3_span']")
  </code></pre>
  
  <p>Also would like to fetch the word "Employees" from the following code.</p>
  
  <pre><code>&lt;input id="HieararchyDropdownMenu" class="selectedHierarchyValue" type="text" readonly="" value="Employees" xpath="1"&gt;
  </code></pre>
  
  <p>Any help would be appreciated.</p>