I have a scenario:
- Open Windows app
- Click on boutton, --> Open a browser separately
- New Instance of my windows app thats opened
- I dont want to create a new instance, i just want to switch between chrome and my windows app , but I don’t now how
[TestClass]
public class UITest
{
static WindowsDriver<WindowsElement> SessionExemple;
[ClassInitialize]
public static void PrepareForTestinNuances(TestContext testContext)
{
Debug.WriteLine("ClassInitialize");
AppiumOptions Exemple = new AppiumOptions();
Control.AddAdditionalCapability("app", @"Path");
Control.AddAdditionalCapability("appArguments", "--Environment=development.me");
Control.AddAdditionalCapability("platformName", "Windows");
Process.Start(@"C:\Program Files (x86)\Windows Application Driver\WinAppDriver.exe");
SessionExemple= new WindowsDriver<WindowsElement>(new Uri("http://127.0.0.1:4723"), Control);
I don’t know , how i have to add a additionalcapability to control chrome or I can just switch between apps ?