Hi,
sometimes, I would like to scan through an object element tree for certain element, and then trying to create a snapshot file (*.rxnp) file using script, is there any function I can use to create such a file?
thanks a lot
I am using Ranorex 2.3.2
how to create snapshot file using script
Re: how to create snapshot file using script
Got this snippet from support a few months ago:
Code: Select all
Ranorex.Core.ElementSnapshot snap = Ranorex.Core.ElementSnapshot.Capture(element, true);
System.IO.File.WriteAllText("fileName.rxsnp", snap.SerializeXml());
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...
Ciege...
Re: how to create snapshot file using script
Hi, Ranorex team,
excellent solution and response!
thanks a lot, it works perfectly!
excellent solution and response!
thanks a lot, it works perfectly!