Skip to content

Commit

Permalink
all_Automation_Git_Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
AmolKadam-Tekdi committed Jul 9, 2024
1 parent d392536 commit 37ec723
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
5 changes: 0 additions & 5 deletions allAutomation/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 17 additions & 5 deletions allAutomation/src/main/java/Tests/AllTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,31 @@ public static void Login() throws Exception {
Thread.sleep(3000);
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10));
WebElement element = wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//*[@class='MuiBox-root css-1l4w6pd']")));
assertTrue("Mike button is enables",driver.findElement(By.xpath("//*[@class='MuiBox-root css-1l4w6pd']")).isDisplayed(),"Mike button is not enabled");
assertTrue("Mike button is enabled",driver.findElement(By.xpath("//*[@class='MuiBox-root css-1l4w6pd']")).isDisplayed(),"Mike button is not enabled");

element.click();

logStep(Text);

TexttoSpeach(Text);
// TexttoSpeach(Text);


Thread.sleep(4000);
logStep("Click on Stop button");
driver.findElement(By.xpath("(//*[@xmlns='http://www.w3.org/2000/svg'])[2]")).click();

Thread.sleep(2000);

driver.findElement(By.xpath("//*[@class='MuiBox-root css-1iyidz3']")).click();

Thread.sleep(2000);
driver.findElement(By.xpath("(//*[@xmlns='http://www.w3.org/2000/svg'])[2]")).sendKeys("allAutomation/src/main/java/Pages/output_audio.wav.wav");


Thread.sleep(4000);
logStep("Click on Next Button");
driver.findElement(By.xpath("//*[@class='MuiBox-root css-140ohgs']")).click();

}


Expand Down Expand Up @@ -121,9 +135,7 @@ private static void TexttoSpeach(String Text) throws InterruptedException {
voice.allocate();
voice.speak(Text);

Thread.sleep(4000);
logStep("Click on Next Button");
driver.findElement(By.xpath("//*[@class='MuiBox-root css-140ohgs']")).click();


// Ensure the directory exists
String directoryPath = "src/main/java/Pages"; // Adjust this path as needed
Expand Down
Binary file modified allAutomation/target/classes/Tests/AllTest.class
Binary file not shown.

0 comments on commit 37ec723

Please sign in to comment.