Class OverrideDriverCapabilities


  • public class OverrideDriverCapabilities
    extends Object
    This class allows you to override driver capabilities defined in the Serenity configuration files at runtime. This should be done before a new web page is opened, and will last for the duration of the test. Sample usage:

             OverrideDriverCapabilities.withProperty("browser").setTo("Chrome");
         
    • Constructor Detail

      • OverrideDriverCapabilities

        public OverrideDriverCapabilities​(String prefix)