I am trying to select an element by its type
//input[(@type = 'checkbox' or @type = 'radio') and @name = 'BigBobMcNob']
but its not matching, because my type is capitalised
<input type='Checkbox' name='BigBobMcNob' />
How do I fix that? and if I do will it break when selecting on class, which should be case sensitive?
You could just iterate through the node collection and check each node against your conditions like this:
For
typeattribute comparison,StringComparer.OrdinalIgnoreCasecomparer is used;nameattribute doesn’t require a special comparer.