Hi,
I am working with a tester who is using Selenium in my latest project.
I was trying to get some information out of him as to how i needed to name my CSS classes applied to the dynamic elements on the page that he will be testing.
I think he is rather new to this himself so was going to put our findings here for comment:
- Testing classes to be used for dynamically generated content.
- Testing classes to be applied to HTML via jQuery in separate JS file. This avoids testing classes being present in the production environment as the JS file can be excluded prior to deployment.
- Testing classes are to be unique. To make classes unique there may be a need to create incremental classes in dynamically generated lists for example.
- Where test classes are applied purely for testing i.e. they apply no CSS formatting they will be prefixed with “test”.
- Testing classes should also be meaningful to the content they are targeting.
I would be greatful if there is anything that could look as though it may cause issues further down the line.