← Back to team overview

sikuli-driver team mailing list archive

[Bug 1429074] Re: Drag and drop is not working in java(nightly build)

 

I made a test on your system setup and things worked as expected.

On Mac dragDrop can only be used in the same focus context.

So, dragDrop within the same Window (in Finder move a file to a folder)
works in IDE and in Java (I am testing these things in a Maven project
that depends on the 1.1.0-snapshot).

this is my test:

    ImagePath.add(TestRun.class.getCanonicalName() +
"/ImagesAPI.sikuli");

    App b = new App("Safari");
    App f = new App("Finder");
    b.focus();
    Match src = s.find("SikuliLogo");
    f.focus();
    Location trgt = s.find("ZEITmacapp").belowAt(-50); // the drop point in the Finder window
    trgt.click();

    // trying to copy the Sikuli logo to Finder (does not work - focus problem)
    s.dragDrop(src, trgt);

    s.wait(3f);

    // doing the same dragDrop with basic mouse actions  (works here and in IDE)
    b.focus();
    s.mouseMove(src);
    s.mouseDown(Button.LEFT);
    f.focus();
    s.mouseMove(trgt);
    s.wait(0.5);
    s.mouseUp();

    // moving a file to a folder in the same Finder window   (works here and in IDE)
    trgt.click();
    s.dragDrop("ZEITmacapp", "testfolder");

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

Title:
  Drag and  drop is not working in java(nightly build)

Status in Sikuli:
  New

Bug description:
  Hi Support,
  After upgrading my Mac to OS X Yosemite  (10.10.2).
  I was not able to use Sikuli1.0.1 . so, I moved to Sikuli 1.1 (nightly build).
  With this setup, drag and drop is not working.
  it is just moving the mouse from one position to another.
  But it is not pressing the mouse and moving.
  Waiting for a positive reply.

  Thanks & Regards,
  Sathish Nagarajan

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


References