System.ArgumentException: Parameter is not valid
Posted: Thu Apr 11, 2019 5:18 pm
I am getting below error when I run ranorex test. I am not sure why its giving me this error. I use same function in mutliple places and it works just fine.
Line 256 code:
Code: Select all
isImage=cl.RGBImageValidation(repo.CDIS.ScenarioEditorPanel.Canvas,Screenshot+"Setup_RGB.png",ScreenCaptureMode,0.99999);
Code: Select all
Exception occurredSystem.ArgumentException: Parameter is not valid.
at System.Drawing.Bitmap..ctor(String filename)
at CDIS_V11.FunctionalLibrary.CL.ImageValidation(Element item, String test1, String test2, Double options) in d:\ranorex\utilities\qa\ranorex\V22\CDIS_V21\Functional Library\CL.cs:line 256
Code: Select all
bool isCreated= Validate.CompareImage(item,new Bitmap(test1),MyFindOptions,"test",options1);