sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #26657
Re: [Question #250815]: [1.0.1] WebApp with Flash content: Drag and drop not working with java
Question #250815 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/250815
Status: Open => Answered
RaiMan proposed the following answer:
--- i use s.exists(firefox); to wait for a screenshot of my blank firefox start page.
This really does not "wait", since it does not assure the image appeared.
if you want to wait for an image to appear, you should use
s.wait(someimage, timeout)
If the image does not appear within the given time in secs, it throws FindFailed
another option might be:
if (null == s.exists(some image, timeout)) some action for case not appeared;
which works without throwing FindFailed
--- click into the address bar
to prepare the address bar for typing/pasting an URL, using
type("l", Key.CTRL); // lowercase L
is much easier and reliable (no need for images to be searched)
(when working with Sikuli most people forget about using shortcuts, that the app might understand and instead implement complex visual approaches ;-)
--- Settings.showActions
you have to import org.sikuli.basics.Settings
--- Maybe i should try the drag and drop command in another (desktop) application to find out
… might be a good idea
--- i can send you my java class and the pictures (screenshots) of the testcase
… does not help much, because I would need the real application for testing
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.