sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #54775
[Question #689756]: Focusing a field of a client application
New question #689756 on Sikuli:
https://answers.launchpad.net/sikuli/+question/689756
Hi,
I've a client application called Oracle Capture, in that application there is a field called "Batch_Num". I want sikuli to populate the field with the value i'm passing as argument (I'm using Sikulix server here). But i'm unable to focus the client application window itself and click on it seems not working. Any idea where i'm messing it up?
WS- http://localhost:50010/scripts/CMD_Test/run?args=456
cmdPath = os.getenv("comspec")
title = "My Command Line"
cmd = 'start "%s" %s'%(title, cmdPath)
os.popen(cmd);
wait(3)
#paste("Name")
BatchNum=sys.argv[1]
print(BatchNum)
#rightClick(App.focusedWindow())
App.focus("Oracle Webcenter Enterprise Capture")
wait(3)
click(Region(38,928,772,37)) //This is the location of the field
type(BatchNum)
Regards,
Cris
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.