← Back to team overview

sikuli-driver team mailing list archive

[Bug 1837188] Re: type(KeyModifier.SHIFT, Key.DOWN) performs a click instead of failing --- not with latest 1.1.4

 

** Changed in: sikuli
    Milestone: 1.1.4 => None

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

Title:
  type(KeyModifier.SHIFT, Key.DOWN) performs a click instead of failing
  --- not with latest 1.1.4

Status in Sikuli:
  Invalid

Bug description:
  I have an issue that I really can't figure out what happens. I have
  the following method which I believe is fairly straight forward, I'd
  like to click at a tree in my program and then use the keyboard to
  guide sikuli to the right items in the tree. It works when doing these
  combination manually, but when sikuli runs it, the first click seems
  to repeat itself each time I call for the type(KeyModifier.SHIFT,
  Key.DOWN) command. Code and log follows:

  def select_item_in_cluster(startpoint, endpoint):
      click(Pattern('tree_image.png').exact())
      type('folder_in_tree')
      type(Key.RIGHT) #open a subfolder
      type(startpoint) #click at an item in the subfolder - 7 in this case
      for __ in range(int(startpoint), int(endpoint)): #mark a bunch of items
          type(KeyModifier.SHIFT, Key.DOWN) 
          sleep(1)
      type(Key.ENTER)

  From the sikuli logfile I get the following:
  [log (7/17/19 2:16:10 PM)] CLICK on L(44,234)@S(0)[0,0 1920x1200]
  [log (7/17/19 2:16:10 PM)]  TYPE "folder_in_tree"
  [log (7/17/19 2:16:12 PM)]  TYPE "#RIGHT."
  [log (7/17/19 2:16:13 PM)]  TYPE "7" 
  [log (7/17/19 2:16:14 PM)] CLICK on L(44,234)@S(0)[0,0 1920x1200]
  [log (7/17/19 2:16:15 PM)]  TYPE "#DOWN."
  [log (7/17/19 2:16:16 PM)] CLICK on L(44,234)@S(0)[0,0 1920x1200]
  [log (7/17/19 2:16:16 PM)]  TYPE "#DOWN."
  [log (7/17/19 2:16:17 PM)] CLICK on L(44,234)@S(0)[0,0 1920x1200]
  [log (7/17/19 2:16:17 PM)]  TYPE "#DOWN."
  [log (7/17/19 2:16:18 PM)] CLICK on L(44,234)@S(0)[0,0 1920x1200]
  [log (7/17/19 2:16:19 PM)]  TYPE "#DOWN."
  [log (7/17/19 2:16:20 PM)]  TYPE "#ENTER."

  Am I doing something wrong here or is this a bug?

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


References