What would be the Webdriver Java code equivalent of this step?

Asked by srijith

I'm trying to convert a sikuli script written in Sikuli IDE to Java in eclipse. How can I convert the below line to Java ?

type(text_field.png, "sampletext" + `n`)

Here is my code

public void Add() {
    Screen s = new Screen();
    try {
        s.click("img/button_Add_Dmp.png", 0);
        s.wait("imgs/text_field.png");
        // I HAVE TO PUT THE TRANSCODED LINE HERE FROM SIKULI IDE

    } catch (FindFailed e) {
        e.printStackTrace();
    }
}

Also Please direct me to any tutorial available for this.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

generally you have to check the Java docs, if a 1:1 transcript does not work for a method:
for RC3: http://doc.sikuli.org/javadoc/index.html
for 1.0.0: https://dl.dropboxusercontent.com/u/42895525/SikuliX/SikuliX-API-JavaDocs/index.html

Java type() for RC3:
type(text_field.png, "sampletext" + `n`,0)

in 1.0.0 the 1.1 transcript should work

Revision history for this message
RaiMan (raimund-hocke) said :
#2

update:
in 1.0.0 the 1to1 transcript should work

Can you help with this problem?

Provide an answer of your own, or ask srijith for more information if necessary.

To post a message you must log in.