← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #248226]: enum java

 

Question #248226 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/248226

    Status: Open => Solved

Jeremy confirmed that the question is solved:
I figured out how to get it to work.

I don't know why, but I changed it to this:
					Screen s = new Screen();
					try {
						s.click(images.Android_Home.toString());
					} catch (FindFailed e) {
						// TODO Auto-generated catch block
						e.printStackTrace();
					}

	public enum images{
		Android_Home("Android_Home.png");
		
		private String name;
		
	    private images(String s) {
	        name = s;
	    }

	    public String toString(){
	       return "..\\..\\Images\\"+ name;
	    }

        }

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.