My code is(I replace actual URL with ../../../).
[TestInitialize] public static void Initalize() { AppiumOptions desiredcap = new AppiumOptions(); desiredcap.AddAdditionalCapability("app", @".../../../..../"); driver = new WindowsDriver<WindowsElement>(new Uri("http://127.0.0.1:4723"), desiredcap); if (driver == null) { Console.WriteLine("App not running"); return; } } I want to make URL dynamic of
desiredcap.AddAdditionalCapability("app", @".../../../..../"); because i want to use this method in different project. Is it possible to write variable url instead of ../../../ and take url value from some other file or from Testcase.