Currently selected window has been closed
See original GitHub issueRecently started to Automate Desktop applications using Appium WInappdriver. Using Appium driver successfully able to launch application. Application first display slash screen and then the Signin form. Encounterd the issue Currently selected window has been closed
Tried with the code below as well, its not working Thread.Sleep(TimeSpan.FromSeconds(5)); LogonSession.SwitchTo().Window(LogonSession.WindowHandles[0]); LogonSession.ActivateApp(“AppPath”);
Stacktrace:
at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary2 parameters) at OpenQA.Selenium.Appium.AppiumDriver
1.Execute(String driverCommandToExecute, Dictionary2 parameters) at OpenQA.Selenium.Remote.RemoteWebDriver.FindElement(String mechanism, String value) at OpenQA.Selenium.Remote.RemoteWebDriver.FindElementByXPath(String xpath) at OpenQA.Selenium.Appium.AppiumDriver
1.FindElementByXPath(String xpath)
at RnL.Tests.AppControlBase.Setup(TestContext context)
Can any one help on this? Thanks for the help!!
Issue Analytics
- State:
- Created 2 years ago
- Comments:17
Top GitHub Comments
Hi. It’s working now. Thank you for helping out Anunaya
Regards, Ashok
On Wed, Jun 14, 2023 at 10:15 AM ANUNAYA THAKUR @.***> wrote:
Ok, I will do that. Thank you so much
On Thu, Jun 22, 2023 at 8:47 PM ANUNAYA THAKUR @.***> wrote: