microsoft / EasyRepro

Automated UI testing API for Dynamics 365
MIT License
512 stars 285 forks source link

[HOW-TO] xrmApp.BusinessProcessFlow.SetValue() not work. #1378

Open back2urownl1fe opened 1 year ago

back2urownl1fe commented 1 year ago

It had selected the Stage successfuly, but can not set value in the StageProcessControl. Error: BrowserAutomation Information: 10003 : Command Failure: Set Lookup Value: header_process_asia_status - 3 attempts - total execution time 101041.0164ms - Return Result: System.ArgumentException: MoveToElement cannot move to a null element with no offset. Parameter name: toElement

Here is my code: xrmApp.BusinessProcessFlow.SelectStage("Qualify"); xrmApp.ThinkTime(2000);
xrmApp.BusinessProcessFlow.SetValue(new LookupItem { Name = "header_process_asia_status", Value = "Qualify", Index = 0 }); image

krishnacs1993 commented 1 year ago

Hi,

Could you please try as below, do not pass header_process in the Name

xrmApp.BusinessProcessFlow.SetValue(new LookupItem { Name = "asia_status", Value = "Qualify", Index = 0 });