I am trying to understand the difference between
//*[.] and //*[*]
These return different number of elements.
Also where I can use the dot instead of attribute
//tag[@Attribute="value"]
Not just in case of text? And what does the syntax look like? Because I tried
//tag[@.="value"] and //tag[.="value"]
and the last one only worked in case of text but not instead of case
//tag[@id="value"]
for example, so when can I change the dot instead of attribute?