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.

AppiumLocalService starts duplicate application windows

See original GitHub issue

Hello, I am testing a Windows application using AppiumLocalService. The problem is that Appium will start duplicate app windows which will cause the tests to fail. Any idea how to remedy that?

Here is the Appium setup code: ` {

         var appiumServiceBuilder = new AppiumServiceBuilder().UsingPort(4723).Build();
         appiumServiceBuilder.Start();

         var appiumOptions = new AppiumOptions();
         appCapabilities.AddAdditionalCapability("app", "appPath");
         appCapabilities.AddAdditionalCapability("fullReset", true);
         appCapabilities.AddAdditionalCapability("newCommandTimeout", 60);

         //This line causes duplicate app launches
         WindowsDriver<WindowsElement> session = new WindowsDriver<WindowsElement>
         (appiumServiceBuilder, appiumOptions); 

} `

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
anunay1commented, Aug 11, 2021

Can you share the appium logs

1reaction
bonislavcommented, Aug 9, 2021

We tried a different port and tried moving the AppiumLocalService to a static class, the result was the same, the app would launch duplicate times for some reason. We are using xUnit as the test framework, and have limited the threads to one.

Regards

Read more comments on GitHub >

github_iconTop Results From Across the Web

Appium: Couldn't start the appium server in Windows
Start the Windows Task Manager by pressing Ctrl+alt+Del. Under Processes tab kill the ' node.exe ' process. Try to start the Appium server ......
Read more >
Windows opening multiple copies of the same application
Sometime ago I had to launch taskmanager and noticed that for some reason my Windows 10 launches the exact same applications multiple times....
Read more >
How to start Appium Server Programmatically?
OR Press Windows Key + R and enter cmd in the Run window and hit Enter. Command Prompt. Copy the first path received...
Read more >
Test Windows Desktop App using Appium-Compatible ...
Step-by-Step tutorial to test windows desktop app using Appium Compatible WinAppDriver using a windows application example.
Read more >
Getting Started with Appium for Android Java on Windows ...
ADB can control your device over USB from a computer, copy files back and forth, install and uninstall apps, run shell commands, and...
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