← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #697041]: Run error - [error] AttributeError ( 'NoneType' object has no attribute 'getX' )

 

Question #697041 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/697041

Dev S gave more information on the question:
this from my logger.py,

def passed(self, msg, *args, **kwargs):
		self.info('PASS: ' + msg, *args, **kwargs)

		#if self.isEnabledFor(logging.DEBUG) and len(getLastFoundImages()) != 0:
		if len(getLastFoundImages()) != 0:
			 #source image
			 #self.html_img("Source Image", common.cfgImageLibrary + '/' + getLastFoundImage())
			 #matched image
			 last_match = SCREEN.getLastMatch()
			 region = (last_match.getX(), last_match.getY(), last_match.getW(), last_match.getH())
			 self.screenshot(msg="Best Matches", folder='results', region=region)
			 #score of match
			 #self.info("Matched with score: %s" % last_match.getScore())

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