Issue in locating web elements


I am not understanding which locators must be used for which web element. I am automating my website and I can read my button using xpath, however, I am not able to read my href element, datepicker etc using xpath. Why is it so? Is there a specific way to read each web element? Please advice.


Hi sneha2

Please share the HTML page source of the element that you want to inspect, XPATH support href attribute, DataPicker elements as well.