sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #19224
Re: [Question #232296]: NoClassDefFoundError
Question #232296 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/232296
Status: Needs information => Open
VIBHOR MEHROTRA gave more information on the question:
sikuli 1.2
windowsw 7(64 bit)
library references- fitlbrary.jar, fitnesse.jar,sikuli-script.jar,selenium-standalone 2.33.jar
package com.util;
import org.openqa.selenium.WebDriver;
import org.sikuli.script.FindFailed;
import org.sikuli.script.Pattern;
import org.sikuli.script.Screen;
public class SikuliFit {
static String cwd = System.getProperty("user.dir");
static String path = cwd + "\\" + "img";
static Screen s1 = new Screen();
WebDriver driver;
//This is for 3289
public SikuliFit(WebDriver driver) {
this.driver=driver;
// TODO Auto-generated constructor stub
}
public boolean contentPlayerLocked() throws InterruptedException
{
Thread.sleep(5000);
try {
Pattern NextIcon= new Pattern(path+"\\"+"NextStarting.png");
NextIcon=NextIcon.targetOffset(-34, 0);
s1.click(NextIcon);
} catch (FindFailed e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Thread.sleep(1000);
try {
Pattern RadioButtonIcon=new Pattern(path+"\\"+"1373439289796.png");
RadioButtonIcon=RadioButtonIcon.targetOffset(0, -1);
s1.click(RadioButtonIcon);
} catch (FindFailed e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Thread.sleep(1000);
try {
Pattern TemplateIcon=new Pattern(path+"\\"+"Selecttempla.png");
TemplateIcon=TemplateIcon.targetOffset(12,0);
s1.click(TemplateIcon);
} catch (FindFailed e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Thread.sleep(1000);
try {
Pattern OtherDocumentIcon=new Pattern(path+"\\"+"OtherDoctrne.png");
OtherDocumentIcon=OtherDocumentIcon.targetOffset(4,2);
s1.click(OtherDocumentIcon);
} catch (FindFailed e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Thread.sleep(1000);
try {
Pattern BlogPostIcon =new Pattern(path+"\\"+"Blogpost.png");
BlogPostIcon = BlogPostIcon.targetOffset(0,-6);
s1.click(BlogPostIcon);
} catch (FindFailed e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Thread.sleep(1000);
try {
Pattern OkInnerButtonIcon =new Pattern(path+"\\"+"1373439431869.png");
OkInnerButtonIcon = OkInnerButtonIcon.targetOffset(0,1);
s1.click(OkInnerButtonIcon);
} catch (FindFailed e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Thread.sleep(1000);
try {
Pattern OkButtonIcon =new Pattern(path+"\\"+"1373439462823.png");
OkButtonIcon = OkButtonIcon.targetOffset(1,0);
s1.click(OkButtonIcon);
} catch (FindFailed e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return true;
}
}
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.