I am writing scripts to automate a hybrid application.
On my app I have two windowHandles.
For example, after performing some actions when I execute below code I get “2” windows as the windowHandles value.
ReadOnlyCollection<string> windowHandles = InitialiseAppium.driver.WindowHandles;
So at the script I need to close the windowHandles window and navigate back to 0th window.
I tried doing this with:
But no luck yet:
This is what i currently have:
ReadOnlyCollection<string> windowHandles = InitialiseAppium.driver.WindowHandles; InitialiseAppium.driver.SwitchTo().Window(windowHandles); InitialiseAppium.driver.Close();