本文整理汇总了Python中PF_common.verify_continue_with_similarity方法的典型用法代码示例。如果您正苦于以下问题:Python PF_common.verify_continue_with_similarity方法的具体用法?Python PF_common.verify_continue_with_similarity怎么用?Python PF_common.verify_continue_with_similarity使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PF_common
的用法示例。
在下文中一共展示了PF_common.verify_continue_with_similarity方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: FixGoogleSection
# 需要导入模块: import PF_common [as 别名]
# 或者: from PF_common import verify_continue_with_similarity [as 别名]
def FixGoogleSection(log_file):
PF_common.GoogleLogin(log_file)
if PF_common.verify_continue_with_similarity(log_file,"1404474658234.png",0.95)==0:
PF_common.write_log_with_screenshot(log_file,"Google section is not orange")
rs=7
if exists(Pattern(GL01_green).similar(0.90)):set_GL01_grey(log_file);rs=7
if exists(Pattern(GL02_green).similar(0.90)):set_GL02_grey(log_file);rs=7
if exists(Pattern(GL03_green).similar(0.90)):set_GL03_grey(log_file);rs=7
示例2: PF_check_required_init
# 需要导入模块: import PF_common [as 别名]
# 或者: from PF_common import verify_continue_with_similarity [as 别名]
def PF_check_required_init(log_file):
sleep(2)
rs=1
PF_common.load_browser_with_url(log_file, PF_common._PF_link)
sleep(2)
PF_common.wait_find("1396563774390.png")
wait(10)
#FixGoogleSection(log_file)
PF_common.FacebookLogin(log_file)
PF_common.write_log_with_screenshot(log_file,"FB section1 before check!")
FBFirstSection=("1404805532966.png")
FBSecondSection=("1404805548873.png")
pf_common.locate_linkedIn_section(log_file)
if PF_common.verify_continue_with_similarity(log_file,FBFirstSection,0.93)==0 or PF_common.verify_continue_with_similarity(log_file,FBSecondSection,0.93)==0 :
PF_common.write_log_with_screenshot(log_file,"FB section1 in is not orange")
rs=2
if exists(Pattern(FB01_green).similar(0.90)):set_FB01_grey(log_file);rs=2
if exists(Pattern(FB02_green).similar(0.90)):set_FB02_grey(log_file);rs=2
if exists(Pattern(FB04_green).similar(0.90)):set_FB04_grey(log_file);rs=2
if exists(Pattern(FB06_green).similar(0.90)):set_FB06_grey(log_file);rs=2
if exists(Pattern(FB07_green).similar(0.90)): set_FB07_grey(log_file);rs=3
PF_common.LinkedInLogIn(log_file)
wait(10)
if PF_common.verify_continue_with_similarity(log_file,"1404735275920.png",0.95)==0:
PF_common.write_log_with_screenshot(log_file,"Linked in is not orange")
rs=4
if exists(Pattern(LK01_green).similar(0.90)):set_LK01_grey(log_file);rs=4
if exists(Pattern(LK03_green).similar(0.90)):set_LK03_grey(log_file);rs=4
if exists(Pattern(LK05_green).similar(0.90)):set_LK05_grey(log_file);rs=4
return rs