can i use xpath to set element properties ?
/html/body/form[@id='search']/select[@name='category' and @value='apple' and @type='select-one']
XPath, the XML Path Language, is a query language for selecting nodes from an XML document.
To set the value you can use something like a DOM parser and setAttribute('value', 'foo');
It might help if you actually told us if that returned anything or not. You can use count() to see if it returns anything, if not noticeable.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With