Coded UI and Ranorex in Visual Studio
Posted: Mon Jan 29, 2018 11:05 pm
Hi All,
I'm new to Ranorex and i've just inherited an existing CodedUI project; Is it possible to use Ranorex with an application that CodedUI opened? My solution bellow unfortunately does not work. Thank you in advance!
Example:
I'm new to Ranorex and i've just inherited an existing CodedUI project; Is it possible to use Ranorex with an application that CodedUI opened? My solution bellow unfortunately does not work. Thank you in advance!
Example:
//In Test.cs [TestMethod] public void Test1() { //Open application using coded UI // Do some codedui work that will launch a web browser DoRanorexPart(); }
//In Ranorex.cs [TestMethod] public void DoRanorexPart() { //initialize Ranorex Ranorex.Core.Resolver.AssemblyLoader.Initialize(); // ??Can Ranorex Find an already opened WebDocument object? WebDocument webDocument = "/dom[@domain='Already_Opened_WebDoc.net']"; InputTag fileName = webDocument.FindSingle("//input[#'FileName']"); fileName.Click(); }