From dc5a84e0dd19f38ba97956308d96ddc2ccbae13c Mon Sep 17 00:00:00 2001 From: AmolKadam-Tekdi Date: Tue, 9 Jul 2024 17:44:50 +0530 Subject: [PATCH] all_Automation_Git_Actions --- allAutomation/src/main/java/Tests/AllTest.java | 3 +++ 1 file changed, 3 insertions(+) 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) {