Skip to main content
Navigator | Tier 3
April 17, 2023
Question

Image Recognition command is not working in Unattended mode in V11.3

  • April 17, 2023
  • 17 replies
  • 847 views

Hi All!

My bot is capturing the specific action on the website. I used image recognition command multiple times to check if specific image present on specific page which works fine when run on local machine or on runner machine in attended mode. When I try to schedule it on runner m/c it is throwing error at almost every image recognition command as mentioned below. Each time it is giving different error.

  1. Image not found!
  2. Error Message: Image not found!
     
    Kindly edit the Image Recognition command with the following steps:
    - Use the 'Repeat if image not found' option.
    - Use the 'Quick Test' option to check if the image is indeed present.

Please help!!!

17 replies

Navigator | Tier 3
April 25, 2023

I have had this issue before and oddly it ended up not being a resolution issues. I have seen within my space that in an unattended run that the image you are looking for is not in the same spot on the screen as when running attended or VDI open. How i have solved this was by putting screen captures before and after the image recognition command. By doing this you can pinpoint the exact location of the image. From there i would use IF image recognition options to account for the original location when open and the image location when VDI is closed.. this has helped me a ton. I also set the IF image recognition command to try to find it 3 times by 50ms so that it does not delay your process as bad. 

 

Hopefully that is helpful although it does add some work… ps after you resolve the issue, if that is your issue, you can disable the capture screen commands

Navigator | Tier 3
April 26, 2023

 Hi @Pallavi Desai 

 

Run the below screen resolution script in bot runner RDC and check the correct screen resolution.

 

dim vid
dim vStatus

for each vid in getobject("winmgmts:").instancesof("Win32_VideoController")
vStatus = "Resolution: " & vid.CurrentHorizontalResolution & "x" & vid.currentVerticalResolution
next
'Wscript.Echo vStatus
Wscript.Stdout.Writeline vStatus
WScript.Quit

Hi @Shyam ,

I ran the script given by you on bot runner m/c and surprisingly it is showing different resolution as ‘1706X686’ whereas in display setting it is showing as below which is same as my laptop. Since bot runner is VMware and our admin has restricted any changes to the resolution I don’t understand how to resolve this now. 

 

Navigator | Tier 3
April 26, 2023

Hi @Pallavi Desai,

 

Update 1366*768 screen resolution in your laptop and try to re-capture & save the bot. Then check-in the bot code and run it in runner machine.

Navigator | Tier 3
April 26, 2023

Hi @Pallavi Desai,

 

Update 1366*768 screen resolution in your laptop and try to re-capture & save the bot. Then check-in the bot code and run it in runner machine.

Hi @Shyam ,

My laptop already has same resolution as 1366*768 bot runner is showing ‘1706X686’ when I ran the script.  The 1366*768 is the max resolution I can set on my laptop.

Navigator | Tier 3
April 26, 2023

sorry @Pallavi Desai I misunderstood. Please raise a ticket with your Infra/Desktop team and inform them to update the 1366*768 resolution in all your bot runner machines

Navigator | Tier 3
April 26, 2023

@Pallavi Desai Screen Resolution change needs to be done in VMware display driver.

Navigator | Tier 3
April 26, 2023

sorry @Pallavi Desai I misunderstood. Please raise a ticket with your Infra/Desktop team and inform them to update the 1366*768 resolution in all your bot runner machines

@Pallavi Desai Screen Resolution change needs to be done in VMware display driver.

@Shyam  Thanks !!