I would like to share a constant variable over multi-tests in selenium
For example String text = "the shared text over tests";
2 Answers
You can define your class of constants like this:
public class Constants {
// now here you can define your constant variables
public static text = "the shared text over tests";
}
now, you can use your constant variable in any class of your package like this:
String constantText = Constants.text;