Fixing XPath Generation When Node Is Selected via Mouse Click