I'm having some trouble getting the various UILocal functions to work at
all - Currently I'm just trying to do one click at a set of coordinates.
The code I have is as follows:
I solve this problem when unplug second monitor. It works fine with single Monitor view.
If you need to run this code on the dual (or more) view settings. Try move your flahs application to the other monitor.
Also can run simple test:
Replace your code :
uilocal.click(730, 20);
to:
UIFunctions uiFunctions = new UIFunctions(isDebugMode);
uiFunctions.drag(0, 0,730, 20);
Mouse suppose to move on the main (for Genie) monitor.
If move you flash application to this monitor. Script will work.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi there,
I'm having some trouble getting the various UILocal functions to work at
all - Currently I'm just trying to do one click at a set of coordinates.
The code I have is as follows:
@Override
public void start() throws Exception {
EXIT_ON_FAILURE = false;
CAPTURE_SCREENSHOT_ON_FAILURE = false;
SWFApp app1=connectToApp("[object Main]");
UILocal uilocal=new UILocal(app1);
uilocal.click(730, 20);
}
Seems like it should be straightforward, but when I run the script, I get
the following console output:
Started operation: ConnectToServer, On control: Application
Started operation: ConnectToSWF: [object Main], On control: Application:
[object Main]
Started operation: Click: SWF App, On control: UILocal
Result is: Step failed
Error Message is:: Failed to identify UIGenieImage for application [object
Main]
Total Time taken by Script: 00:00:01.13
Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property '
http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not
recognized.
Compiler warnings:
WARNING: 'org.apache.xerces.jaxp.SAXParserImpl: Property '
http://javax.xml.XMLConstants/property/accessExternalDTD' is not
recognized.'
Warning: org.apache.xerces.parsers.SAXParser: Feature '
http://javax.xml.XMLConstants/feature/secure-processing' is not recognized.
Warning: org.apache.xerces.parsers.SAXParser: Property '
http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.
Warning: org.apache.xerces.parsers.SAXParser: Property '
http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not
recognized.
Script ended
Does anyone have any idea what could be going on here, and how I can
resolve this?
Thanks
I solve this problem when unplug second monitor. It works fine with single Monitor view.
If you need to run this code on the dual (or more) view settings. Try move your flahs application to the other monitor.
Also can run simple test:
Replace your code :
uilocal.click(730, 20);
to:
UIFunctions uiFunctions = new UIFunctions(isDebugMode);
uiFunctions.drag(0, 0,730, 20);
Mouse suppose to move on the main (for Genie) monitor.
If move you flash application to this monitor. Script will work.
Didn't help, even after disconnecting the second monitor.
It was just a warning and didn't interrupt test execution.
Last edit: Mayank Arora 2014-12-08