question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Currently selected window has been closed

See original GitHub issue

Recently 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

image

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.AppiumDriver1.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.AppiumDriver1.FindElementByXPath(String xpath) at RnL.Tests.AppControlBase.Setup(TestContext context)

Can any one help on this? Thanks for the help!!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:17

github_iconTop GitHub Comments

1reaction
AshokMarrapucommented, Jun 15, 2023

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:

I don’t know which language binding are you using check with my username in the closed issue, i have given the code.

— Reply to this email directly, view it on GitHub https://github.com/microsoft/WinAppDriver/issues/1478#issuecomment-1590460201, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAGIFERD5EEZZVFU5Z4QOZTXLE6WLANCNFSM4ZVASP7Q . You are receiving this because you commented.Message ID: @.***>

0reactions
AshokMarrapucommented, Jun 22, 2023

Ok, I will do that. Thank you so much

On Thu, Jun 22, 2023 at 8:47 PM ANUNAYA THAKUR @.***> wrote:

In the filename field: [image: image] https://user-images.githubusercontent.com/7989610/247976563-d5478653-2b64-4ed1-82b6-0dc25176d108.png

use send keys to send the filename with path and Keys.Enter.

— Reply to this email directly, view it on GitHub https://github.com/microsoft/WinAppDriver/issues/1478#issuecomment-1602824343, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAGIFEU6NVKIPHA4477FBF3XMROXLANCNFSM4ZVASP7Q . You are receiving this because you commented.Message ID: @.***>

Read more comments on GitHub >

github_iconTop Results From Across the Web

Currently selected window has been closed · Issue #656 · ...
Hence this command used to fail when the session was pointing to a splash screen window that has already disappeared. The latest release...
Read more >
Appium desktop app test throws element could not be ...
Your driver ( _session in your case) has a property called ... page source is a xml representation of the current selected window...
Read more >
Currently selected window has been closed (WARNING ...
Reason: com.kms.katalon.core.exception.StepFailedException: Currently selected window has been closed (WARNING: The server did not provide a…
Read more >
UI Test Automation on Windows Applications by ...
It is a service with functionalities defined by Appium. You can test Universal Windows Platform (UWP) and Classic Windows Forms (Win32) apps ...
Read more >
Select Window will fail if focused window will close before ...
Trying to get back to the main browser window using Select Window title, but is failing after closing the popup window that raised...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found