i am planning to use data- attributes to identify elements in DOM for selenium test cases. Will the usage of attributes affects application performance?
Not at all, you'll be fine with using data-* attributes. However, you should note that using the syntax $.data(theInput, 'someData'); is much faster than using the syntax theInput.data('someData');, as demonstrated in this jsPerf.
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