Best Python code snippet using fMBT_python
eyenfinger.py
Source:eyenfinger.py
...529 if score < match:530 raise BadMatch('No matching word for "%s". The best candidate "%s" with score %.2f, required %.2f' %531 (word, matching_word, score, match))532 return ((score, matching_word), _g_words[matching_word][appearance-1][2])533def iVerifyText(text, match=0.33, capture=None):534 """535 DEPRECATED - use fmbtx11.Screen.verifyOcrText instead.536 Verify that text can be found from previously iRead() image.537 Parameters:538 text multiple words that should be checked539 match minimum matching score540 capture save image with verified text highlighted541 to this file. Default: None (nothing is saved).542 Returns pair:543 ((score, matchingText), (left, top, right, bottom)), where544 score score of found match (1.0 for perfect match)545 matchingText corresponding text detected by OCR546 (left, top, right, bottom)547 bounding box of the text in read image...
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.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!