X-1.0rc3:Java: Focus to browser url field using type() a shortcut
Initially I was capturing the url field of the browser as an image and than clicking on it. This was working fine but it needed to capture images for every browser. Bad idea!!!
Better solution is to type in : press ATD key + D. Now I am trying to do this in java. Here is my code:
import org.sikuli.
public class T3 {
public static void main(String[] args) {
}
}
}
}
I am using the latest sikuli script jar. This does not work. It is not sending focus to browser url field. What am I missing? When I do Alt + D on the open window through the keyboard manually, focus goes to url text field.
I do have a general question though: if I am not trying to click on a specific image what should be used as the first field of type method? How does it know that we need to send the event to the screen when PSRL field is null?
Thanks
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Rahul Misra
- Solved:
- Last query:
- Last reply: