const findElement Target Style export const findElement = ({ xpath }) => Finds the first DOM element matching an XPath expression using named options. Target style API. Preferred for new code. Parametersoptions{ xpath: string } ReturnsNode | null
const getElementByXpath Legacy Style export const getElementByXpath = (path) => findElement({ xpath: path }) Finds the first DOM element matching an XPath expression. Legacy API. Kept for older code and not the preferred choice for new code. Parameterspathstring ReturnsNode | null