I am using PageObject pattern for my selenium tests. I am getting compiler warnings [variable is never assigned to, and will always have its default value null] in C# . How to suppress these warnings?
Asked
Active
Viewed 346 times
2 Answers
1
Add the public
access modifier to the WebElements. That'll get rid of it.. Otherwise, you might be able to add an attribute to the class to ignore those warnings.
In java, it's
@SupressWarnings("unused")

ddavison
- 28,221
- 15
- 85
- 110