sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #29946
Re: [Question #260249]: java implementation of wait method not working
Question #260249 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/260249
Ben Kirby gave more information on the question:
After further investigation i've found that the wait method works when
using:
@Test
public void test() {
Screen s = new Screen();
ImagePath.add("src/test/resources/images");
try{
s.wait("FileMenuList.png",30);
s.click("FileMenu.png");
}
catch(FindFailed e){
e.printStackTrace();
}
}
but not:
@Test
public void test() {
Screen s = Screen.all();
ImagePath.add("src/test/resources/images");
try{
s.wait("FileMenuList.png",30);
s.click("FileMenu.png");
}
catch(FindFailed e){
e.printStackTrace();
}
}
The difference being Screen s = new Screen(); vs Screen s = Screen.all()
Should this method not work with Screen.all()?
Thanks
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.