How to use _findFirstMatchingBitmapCandidate method in fMBT

Best Python code snippet using fMBT_python

fmbtgti.py

Source:fmbtgti.py Github

copy

Full Screen

...2353 """2354 return self.dumpOcr(**kwargs)2355 def filename(self):2356 return self._filename2357 def _findFirstMatchingBitmapCandidate(self, bitmap, **oirArgs):2358 for candidate in self._paths.abspaths(bitmap):2359 found = self._oirEngine.findBitmap(self, candidate, **oirArgs)2360 if found:2361 return found2362 return []2363 def findItemsByBitmap(self, bitmap, **oirFindArgs):2364 if self._oirEngine != None:2365 self._notifyOirEngine()2366 oirArgsList = self._paths.oirArgsList(bitmap)2367 results = []2368 if oirArgsList:2369 for oirArgs in oirArgsList:2370 oirArgs, _ = _takeOirArgs(self._oirEngine, oirArgs.copy())2371 oirArgs.update(oirFindArgs)2372 results.extend(self._findFirstMatchingBitmapCandidate(2373 bitmap, **oirArgs))2374 if results: break2375 else:2376 oirArgs = oirFindArgs2377 results.extend(self._findFirstMatchingBitmapCandidate(2378 bitmap, **oirArgs))2379 return results2380 else:2381 raise RuntimeError('Trying to use OIR on "%s" without OIR engine.' % (self.filename(),))2382 def findItemsByDiff(self, image, colorMatch=1.0, limit=1, area=None):2383 """2384 Return list of items that differ in this and the reference images2385 Parameters:2386 image (string):2387 filename of reference image.2388 colorMatch (optional, float):2389 required color matching accuracy. The default is 1.02390 (exact match)2391 limit (optional, integer):...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run fMBT automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful