diff --git a/allAutomation/src/main/java/Tests/AllTest.java b/allAutomation/src/main/java/Tests/AllTest.java index d474cf0e..bc8b18b9 100644 --- a/allAutomation/src/main/java/Tests/AllTest.java +++ b/allAutomation/src/main/java/Tests/AllTest.java @@ -175,6 +175,7 @@ private static void saveBase64ToFile(String filePath, String base64String) { private static void injectAudioFile(String relativeFilePath) throws IOException { // Resolve the relative path to an absolute path + logStep("Speaking text in mike"); Path absolutePath = Paths.get(relativeFilePath).toAbsolutePath(); // Read the audio file and convert it to a Base64 string @@ -190,6 +191,8 @@ private static void injectAudioFile(String relativeFilePath) throws IOException // Execute the JavaScript in the context of the browser JavascriptExecutor jsExecutor = (JavascriptExecutor) driver; jsExecutor.executeScript(script); + logStep("Speaking text in mike"); + } private static void clickElementUsingJavaScript(WebElement element) {