Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Windows switching issue through Winium

Discussion in 'Testing & Automation' started by ayushi99999, Jun 15, 2021.

  1. ayushi99999

    ayushi99999

    Joined:
    Jun 15, 2021
    Posts:
    1
    I am automating an application where I have to click elements on next window after login . Below is the issue that I am observing, which is making my scripts failed.

    Login is a small splash screen , which opens and I entered the Username and password correctly and logged in successfully

    After that another screen is open(containing further functionalities) , and i am able to locate the element , but when i tried to click it , it keeps in loading state for a long time , and never returns (I tried to keep it loading for at least 30 minutes)

    I tried using this (web element is found , and line "the order button" gets printed but then no action is performed)

    WebElement loginFrame = driver.findElementByClassName("name of class");
    System.out.println("Click the Orders Button .............");
    loginFrame.findElement(By.name("text")).click();

    I had also use Robot feature of selenium to click on Menu Bar / Status Bar , but I am still not able to add any text inside the application using send key method . Also I do not find Robot Class a Good solution

    If anybody how to handle the switching between the windows or have any suggestions . Please let me know .