Simplify activation key logging format.

Removed redundant color formatting for activation key logs to streamline the output. This ensures a cleaner and more straightforward log message for better readability.
This commit is contained in:
Factor committed 2025-03-20 20:07:20 +01:00
1 parent b7d3179749
commit 0a6e547db6
1 file changed
+5 -6
+5 -6
View File
@@ -72,13 +72,12 @@ public class EsetHomeSteps extends Steps {
String key = $(By.xpath("//p[text()='Klucz aktywacji']/..//following-sibling::*[1]/p")).getText(); String key = $(By.xpath("//p[text()='Klucz aktywacji']/..//following-sibling::*[1]/p")).getText();
String keyText = """ String keyText = """
ESET Smart Security activation key found: ESET Smart Security activation key found:
=---------------------------= =---------------------------=
%s %s
=---------------------------= =---------------------------=
""".formatted(key);
""".formatted(ColorFormatter.GREEN.toConsole(key));
getContext().getScenario().log(keyText); getContext().getScenario().log(keyText);
} }