← Back to team overview

sikuli-driver team mailing list archive

[Question #660833]: Error with Find method

 

New question #660833 on Sikuli:
https://answers.launchpad.net/sikuli/+question/660833

CentOS release 6.9 (Final)


SikuliX Package Build: 1.0.1 25AUG2013190532
Hello, this is your interactive Sikuli (rules for interactive Python apply)
use the UP/DOWN arrow keys to walk through the input history
help()<enter> will output some basic Python information
shelp()<enter> will output some basic Sikuli information
CMD>>> Settings.OcrTextSearch = True
CMD>>> Settings.OcrTextRead = True
CMD>>> PHPSikuliVars = {}
CMD>>> keyDown(Key.ENTER)

CMD>>> keyUp()
CMD>>> PHPSikuliVars["var_1"] = App('Firefox')
CMD>>> PHPSikuliVars["var_2"] = PHPSikuliVars["var_1"].focus()
[log] App.focus Firefox(0) #0
[log] switchApp: Firefox
CMD>>> PHPSikuliVars["var_3"] = PHPSikuliVars["var_2"].window(0)
CMD>>> keyDown(Key.CMD+"0")
^[0CMD>>> keyUp()
ExecJS: PHPSikuliBrowser.stopPolling()
CMD>>> keyDown(Key.CMD+"l")
^[lCMD>>> keyUp()
CMD>>> type('http://www.google.com')
http://www.google.com[log] TYPE "http://www.google.com";
1
CMD>>> keyDown(Key.ENTER)

CMD>>> keyUp()
CMD>>> type('Squiz Labs')
Squiz Labs[log] TYPE "Squiz Labs"
1
CMD>>> keyDown(Key.ENTER)

CMD>>> keyUp()
CMD>>> PHPSikuliVars["var_4"] = find('Home')
PHP Fatal error:  Uncaught FindFailedException: Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  Line 1671, in file Region.java
        at org.sikuli.script.Region.wait(Region.java:1671)
        at org.python.proxies.sikuli.Region$Region$0.super__wait(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
org.sikuli.script.FindFailed: FindFailed: Text search currently switched off
  Line 1671, in file Region.java in /home/mstrategy/libs/sikuli/PHPSikuli.php:1505
Stack trace:
#0 /home/mstrategy/libs/sikuli/PHPSikuli.php(1485): PHPSikuli->_errorToException('Traceback (most...')
#1 /home/mstrategy/libs/sikuli/PHPSikuli.php(1164): PHPSikuli->_getStreamOutput()
#2 /home/mstrategy/libs/sikuli/PHPSikuli.php(121): PHPSikuli->callFunc('find', Array, NULL, true)
#3 /home/mstrateg in /home/mstrategy/libs/sikuli/PHPSikuli.php on line 1505

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.