assertExist command causing errors in SikuliIDE

Asked by fdeamicis

I'm using the assertExist( ) command to verify if a particular piece of text shows up on the screen. Inside the (), I'm using the captured image of the text I want to verify. SikuliIDE throws the following error. Is there a solution for this

[sikuli] [Error] source lineNo: 7
[sikuli] [Error] Traceback (innermost last):
  File "C:\DOCUME~1\FDEAMI~1\LOCALS~1\Temp\sikuli-tmp3473396733423507826.py", line 7, in ?
NameError: assertExist

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Sergey Darovskih (darovskih) said :
#1

"To run a unit testing script, you need to click on the run button in the unit testing panel instead of the ordinary button."

Revision history for this message
dnyaneshwari (dnyaneshwari-chandarana) said :
#2

I am getting the same error

def testb(self) :

      signalState=True
      if signalState:
           print "inside if"
           click(some img )
           wait(10)
           rightClick( some img)
           wait(7)
     assertExist("some img ")

I get the following error

NameError: global name 'assertExist' is not defined

Any help would be really appericated.

Revision history for this message
Tsung-Hsiang Chang (vgod) said :
#3

assertExist is obsolete in 0.10. You can use 'assert exists("img")' instead.

Revision history for this message
Chad Lafontaine (chad-lafontaine) said :
#4

Ouch. The JUnit example doc needs to be updated. I know, the subject header implies that one should be using 0.9 e.g."Unit testing for GUI (JEdit) (0.9)" but a big old warning message or wiki/document update should help.

Revision history for this message
John Klein (johnklein94) said :
#5

Z mojego doświadczenia, kasyno jest wątpliwym źródłem dochodu, ale ja się z tym nie zgadzam. Gorąco polecam odwiedzić mr bet bonus bez depozytu ( https://mrbet-casino.pl/bonus-bez-depozytu/ ) online casino, aby uzyskać najlepsze doświadczenia hazardowe. Jeśli szukałeś najlepszego kasyna to znak, że je znalazłeś.

Revision history for this message
aserty (atawe) said :
#6
Revision history for this message
aserty (atawe) said :
#7

From my experience, casino can be a generator of a money for living. The only casino I can recommend is online roulette casino because people trust it. According to statistics this online casino has the highest https://mr.bet/in/casino/collection/roulette RTP.

Can you help with this problem?

Provide an answer of your own, or ask fdeamicis for more information if necessary.

To post a message you must log in.