Click operation by using class in inject java script plugin

How to perform click operation by using class in inject java script plugin?

To perform click operation by using class in inject java script plugin, you have to use below syntax / function for that:

function getElementByXpath(path)
{
return document.evaluate(path, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;
}
getElementByXpath(“”).selectedIndex(1);

Just provide the dynamic xpath of your element in “”

Save & run your process, it will work.

1 Like