Best Way To Fix The Error With Unregistered Xpath Selector Function