Change Report.Screenshot image

Ask general questions here.
MJesper
Posts: 38
Joined: Fri Dec 28, 2018 2:16 pm

Change Report.Screenshot image

Post by MJesper » Tue Apr 30, 2019 3:45 pm

Hi, I would like to use Report.Screenshot but modify the image that appears in the rxlog, (perhaps something like Report.Screenshot(bitmap)?)

Is there something like this in ranorex today?

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Change Report.Screenshot image

Post by odklizec » Tue Apr 30, 2019 3:53 pm

Hi,

Report.Screenshot is meant to be used with live UI element. Hence there is no parameter to load image from disk or memory. If you want to add an existing image from hdd to report, use Ranorex.Imaging.Load instead, as shown for example here:
viewtopic.php?f=16&t=12155&p=48870#p48859
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration