← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #340038]: SyntaxError: no viable alternative at input 'Field' in python

 

Question #340038 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/340038

    Status: Needs information => Open

adhithi gave more information on the question:
if $($[errorpagelist[$(i)]]) in $(REQUIRED):
    print "error found"    
else:
    print "error not found"


Here, the errorpagelist is  a list that is created using my own data and REQUIRED is the variable the contains data fetched from webpage.

the error is as follows:

The script failed with the following message:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Program Files (x86)\qfs\qftest\qftest-4.1.0-dev9\jython\Lib\qftest.py", line 91, in runscript
    qfcommon.runscript(ctxt, code, exContext, dir)
  File "C:\Program Files (x86)\qfs\qftest\qftest-4.1.0-dev9\jython\Lib\qfcommon.py", line 1012, in runscript
    cpl = compile(code, file, "exec")
  File "C:\Program Files (x86)\qfs\qftest\qftest-4.1.0-dev9\jython\Lib\qfcommon.py", line 1012, in runscript
    cpl = compile(code, file, "exec")
  File "C:\Users\adhithya.d\.qftest\_script3416551849628207373.py", line 1
    if h2Error_404--Not_Found in Field Value
                                      ^
SyntaxError: no viable alternative at input 'Value'


the 'value' in the error is a part of data that is fetched from webpage.

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