← Back to team overview

sikuli-driver team mailing list archive

[Bug 2080007] [NEW] [2.0.5] find method unable to identify the image stored in sikuli repository path

 

Public bug reported:

[2.0.5] find method unable to identify the image stored in sikuli
repository path .

I am trying to automate the UI operations in a RHEL 8 environment , where i am trying a simple operation of opening a 'gedit' and keying test into the 'gedit'.
I have prestored the gedit titlebar image to identify the gedit application, then when i pass the titlebar image path to the find , when there is no already opened gedit the sikuli find method is unable to identify the image.

while the same gedit identification works when we open the gedit and run
the sikuli script to find the application and type text.

Below is the script i am using :

import os
import org.sikuli.script.Screen;
from sikuli import * 
os.system("gedit")
print("test")
sleep(1)
tc = Pattern("/home/ingres/stash_source/sikuli_tests/sample_tests/gedit.sikuli/1724937478308.png").similar(0.89)
if exists(tc):
    reg1 = find(tc);
    reg1.setX(reg1.getX()+reg1.getW());
    reg1.setW(105);
    reg1.highlight(1);
    bld = reg1.text();
    print('found image');
    print(bld);
else:
    print('not found')
click(reg1)
type("test entry" + Key.ENTER)

Hence please look into this issue asap.

Thanks,
Bharath Kumar C

** Affects: sikuli
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to SikuliX.
https://bugs.launchpad.net/bugs/2080007

Title:
  [2.0.5] find method unable to identify the image stored in sikuli
  repository path

Status in SikuliX:
  New

Bug description:
  [2.0.5] find method unable to identify the image stored in sikuli
  repository path .

  I am trying to automate the UI operations in a RHEL 8 environment , where i am trying a simple operation of opening a 'gedit' and keying test into the 'gedit'.
  I have prestored the gedit titlebar image to identify the gedit application, then when i pass the titlebar image path to the find , when there is no already opened gedit the sikuli find method is unable to identify the image.

  while the same gedit identification works when we open the gedit and
  run the sikuli script to find the application and type text.

  Below is the script i am using :

  import os
  import org.sikuli.script.Screen;
  from sikuli import * 
  os.system("gedit")
  print("test")
  sleep(1)
  tc = Pattern("/home/ingres/stash_source/sikuli_tests/sample_tests/gedit.sikuli/1724937478308.png").similar(0.89)
  if exists(tc):
      reg1 = find(tc);
      reg1.setX(reg1.getX()+reg1.getW());
      reg1.setW(105);
      reg1.highlight(1);
      bld = reg1.text();
      print('found image');
      print(bld);
  else:
      print('not found')
  click(reg1)
  type("test entry" + Key.ENTER)

  Hence please look into this issue asap.

  Thanks,
  Bharath Kumar C

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/2080007/+subscriptions