i am planning to use data- attributes to identify elements in DOM for selenium test cases. Will the usage of attributes affects application performance?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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 syntaxtheInput.data('someData');, as demonstrated in this jsPerf.