def before_feature(cls, context, feature): if hasattr(context.config, "browser_size") and context.config.browser_size is not None: name = context.config.browser_size size = Responsive.get_browser_size(name) world.size = size ## setup browser browser = "firefox" if hasattr(context.config, "browser") and context.config.browser is not None: browser = context.config.browser world.open_browser(browser) Logger.driver = world.driver