Y
yawnmoth
//form[@name='$id' or @id='$id']//input
//form[@name='$id' or @id='$id']//select//option
I can combine those with an or (|), but to make my code more concise,
would it be possible to reuse the //form[@name='$id' or @id='$id']
bit? Could I maybe do something like this, instead?:
//form[@name='$id' or @id='$id']//(input or select//option)
That doesn't work, but is there something similar that would? Or am I
going to have to duplicate the //form[...] part for each one?
Thanks!
//form[@name='$id' or @id='$id']//select//option
I can combine those with an or (|), but to make my code more concise,
would it be possible to reuse the //form[@name='$id' or @id='$id']
bit? Could I maybe do something like this, instead?:
//form[@name='$id' or @id='$id']//(input or select//option)
That doesn't work, but is there something similar that would? Or am I
going to have to duplicate the //form[...] part for each one?
Thanks!