当前位置: 首页>>代码示例>>Python>>正文


Python PF_common_FF类代码示例

本文整理汇总了Python中PF_common_FF的典型用法代码示例。如果您正苦于以下问题:Python PF_common_FF类的具体用法?Python PF_common_FF怎么用?Python PF_common_FF使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了PF_common_FF类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: PF_WebApp_LK01_ProfileVisitsVisible_GreyToGreen_FF_1327

def PF_WebApp_LK01_ProfileVisitsVisible_GreyToGreen_FF_1327(log_file):
    
        
    ProfileVisitsVisible_grey=("grey.png")
    ProfileVisitsVisible_hover=("grey_hover.png")
    top_bar=("top_bar.png")
    
    top_bar01=("top_bar01.png")
    
    profile_changes_anonymous=("settings_anonymous.png")
    profile_changes_save=("save_button.png")
    settings_saved=("settings_saved.png")
     
    fix_icon="fix_icon.png"

    ProfileVisitsVisible_green=("green.png")
    
    

    PF_common_FF.locate_linkedIn_section(log_file) 
    PF_common_FF.verify(log_file,ProfileVisitsVisible_grey)
    hover(ProfileVisitsVisible_grey)  
    PF_common_FF.verify(log_file,ProfileVisitsVisible_hover)
    click(ProfileVisitsVisible_grey)
    sleep(2)
    
    PF_common_FF.ifPassword(log_file)
        
    PF_common_FF.verify(log_file,top_bar)
    PF_common_FF.verify(log_file,profile_changes_anonymous)
    click(Pattern(profile_changes_anonymous).similar(0.75).targetOffset(-95,0))
    PF_common_FF.verify(log_file,profile_changes_save)
    click(profile_changes_save)
    sleep(2)        
    
    PF_common_FF.verify(log_file,settings_saved)    
    click(fix_icon)
    sleep(2)
    
    PF_common_FF.verify(log_file,ProfileVisitsVisible_green)
开发者ID:avgqa,项目名称:qa-scripts,代码行数:40,代码来源:PF_WebApp_LK01_ProfileVisitsVisible_GreyToGreen_FF_1327.py

示例2: PF_WebApp_FB02_FaceMatchingOn_GreyToGreen_1377

def PF_WebApp_FB02_FaceMatchingOn_GreyToGreen_1377(log_file):
   
    FaceMatchingOn_grey=("gray-1.png")
    FaceMatchingOn_hover=("gray_hover.png")
    top_bar=("top_bar.png")
    FaceMatchingOn_settings=("settings.png")
    
    FaceMatchingOn_Changes=("noOne.png")
    
    
    FaceMatchingOn_NoOne=("noOne_checked.png")
    
    fix_icon=("Fixes.png")
    FaceMatchingOff_green=("green.png")
    

    #locate facematching item
    PF_common.locate_item_page_by_page(log_file,FaceMatchingOn_grey)
    PF_common.verify(log_file,FaceMatchingOn_grey)
    hover(FaceMatchingOn_grey)


    PF_common_FF.verify(log_file,FaceMatchingOn_hover)
    mouseMove(Location(1000,120))
    click(FaceMatchingOn_grey)
   
    PF_common.verify(log_file,top_bar)
    PF_common.verify(log_file,FaceMatchingOn_settings)
    sleep(1)
    click(Pattern(FaceMatchingOn_settings).similar(0.95))
    sleep(1)
    click(FaceMatchingOn_Changes)

    PF_common.verify(log_file,FaceMatchingOn_NoOne)
    click(fix_icon)
    mouseMove(Location(1000,120))
    PF_common.verify(log_file,FaceMatchingOff_green)
开发者ID:avgqa,项目名称:qa-scripts,代码行数:37,代码来源:PF_WebApp_FB02_FaceMatchingOn_GreyToGreen_1377.py

示例3: PF_SearchHistoryOn_AllowedToMostPrivate_416

def PF_SearchHistoryOn_AllowedToMostPrivate_416(log_file):
    
    search_history_on_allowed=("allowed.png")
    search_history_on_allowed_mouseover=("mouseover.png")
    search_history_on_allowed_click=("mouseoverclick.png")
    top_bar=("topbar.png")
    turn_on=("turnon.png")
    turn_off=("turnoff.png")
    fixes_icon=("fixes.png")

    search_history_most_private=("mostprivate.png")
    
    PF_common.verify(log_file, search_history_on_allowed)
    hover(search_history_on_allowed)
    PF_common.verify(log_file, search_history_on_allowed_mouseover)
    hover(search_history_on_allowed)
    sleep(1)
    click(search_history_on_allowed_click)
    sleep(5)
    PF_common.verify(log_file, top_bar)  
    click(turn_off)
    PF_common.verify(log_file, turn_on)
    click(fixes_icon)
    sleep(5)
    PF_common.verify(log_file, search_history_most_private)
开发者ID:avgqa,项目名称:qa-scripts,代码行数:25,代码来源:PF_WebApp_GL01_SearchHistoryOn_GreyToGreen_FF_416.py

示例4: PF_WebApp_FB06_InFacebookAds_GreyToGreen_1374

def PF_WebApp_FB06_InFacebookAds_GreyToGreen_1374(log_file):

    
    in_facebook_ads_grey=("gray.png")
    in_facebook_ads_grey_hover=("gray_hover.png")
    
    top_bar=("top_bar.png")
  
    only_my_friends=("settings.png")
    no_one=("no_one.png")
    save_changes=("save.png")
    fix_icon=("Fixes.png")
    
    facebook_ads_green=("green.png")

    PF_common.locate_item_page_by_page(log_file,in_facebook_ads_grey)
    PF_common.verify(log_file,in_facebook_ads_grey)
    hover(in_facebook_ads_grey)

    PF_common.verify(log_file,in_facebook_ads_grey_hover)
    mouseMove(Location(1000,120))
    click(in_facebook_ads_grey)    
    sleep(2)
    
    PF_common.verify(log_file,top_bar)
    click(only_my_friends)
    sleep(1)
    click(no_one)
    sleep(1)
    click(save_changes)
    sleep(1)
    click(fix_icon)    
    
    PF_common.verify(log_file, facebook_ads_green)
开发者ID:avgqa,项目名称:qa-scripts,代码行数:34,代码来源:PF_WebApp_FB07_InFacebookAds_GreyToGreen_1374.py

示例5: PF_WebApp_FB06_NotInFacebookAds_GreenToGrey_1375

def PF_WebApp_FB06_NotInFacebookAds_GreenToGrey_1375(log_file):

    
    facebook_ads_green=("green.png")
    facebook_ads_green_hover=("green_hover.png")

    top_bar=("top_bar.png")
    settings_window=("settings.png")
    friends=("friends.png")
    save_changes=("save.png")
    fix_icon=("Fixes.png")
    
    in_facebook_ads_grey=("gray.png")

    PF_common.locate_item_page_by_page(log_file,facebook_ads_green)
    PF_common.verify(log_file,facebook_ads_green)
    hover(facebook_ads_green)

    PF_common.verify(log_file,facebook_ads_green_hover)
    mouseMove(Location(1000,120))
    click(facebook_ads_green)    
    sleep(2)
    
    PF_common.verify(log_file,top_bar)
    click(settings_window)
    sleep(1)
    click(friends)
    sleep(1)
    click(save_changes)
    sleep(1)
    click(fix_icon)      

  
    PF_common.verify(log_file, in_facebook_ads_grey)
开发者ID:avgqa,项目名称:qa-scripts,代码行数:34,代码来源:PF_WebApp_FB07_NotInFacebookAds_GreenToGrey_1375.py

示例6: set_TW03_gray

def set_TW03_gray(log_file):
    mouseMove(Location(1000,120))
    click(Pattern(TW03_green).similar(0.90))
    sleep(5)
    click(Pattern(hidefocus).similar(0.90))
    click(Pattern("TW03_setting.png").similar(0.95))
    sleep(2)
    click(TW_save_changes)
    sleep(2)
    type(PF_common._password)
    sleep(2)
    type(Key.ENTER)
    sleep(5)
    click(Pattern(hidefocus).similar(0.90))
    click(fixes)
    PF_common.verify_continue(log_file,"TW03_gray.png")
    PF_common.write_log_with_screenshot(log_file, "TW03 is set to grey!")
开发者ID:avgqa,项目名称:qa-scripts,代码行数:17,代码来源:PF_Firefox_setup_1638.py

示例7: set_GL02_gray

def set_GL02_gray(log_file):
    GL02_gray=("1398675881814.png")
    resume=("1398676051128.png")
    pause=("1398676066429.png")    
    mouseMove(Location(1000,120))
    click(GL02_green)
    sleep(4)
    PF_common.ifPassword(log_file)
    sleep(4)
    if exists(Pattern(resume).similar(0.90)):
        click(Pattern(resume).similar(0.90))
        PF_common.verify_continue(log_file,pause)
    PF_common.load_browser_with_url("https://www.youtube.com/channel/UCOBefgX9GvHRr2Dn1hqllYw")    
    sleep(8)
    type("w", Key.CTRL)
    sleep(5)
    PF_common.verify_continue(log_file,GL02_gray)
    PF_common.write_log_with_screenshot(log_file, "GL02 is set to grey!")
开发者ID:avgqa,项目名称:qa-scripts,代码行数:18,代码来源:PF_Firefox_setup_1638.py

示例8: reset_result

def reset_result(log_file):
    y=PF_check_required_init()
    PF_common.write_log(log_file, "value of y is:" +str(y))
    if y==1:
        msg="Required status are all already orange, ready to test!"
        PF_common.write_log_with_screenshot(log_file, msg)
        return
    if (y >1):
        #PF_Chrome_setup(log_file)
        PF_common.reset_account(log_file)
        y=PF_check_required_init()
        if y==1: 
            msg="Required status are set to orange, ready to test!"
            PF_common.write_log_with_screenshot(log_file, msg)
            return
        else: 
            msg="Chrome setup failed! Please check out!"+str(y)
            PF_common.write_log_with_screenshot(log_file,msg)
            raise Exception(msg)
开发者ID:avgqa,项目名称:qa-scripts,代码行数:19,代码来源:PF_Firefox_setup_1638.py

示例9: PF_WebApp_FB01_NotFindableOnGoogle_GreenToGrey_FF1333

def PF_WebApp_FB01_NotFindableOnGoogle_GreenToGrey_FF1333(log_file):
    
    
    not_findable_on_google_selection=("1397117471782.png")
    
    not_findable_on_google_checkbox=("1397117479256.png")
    
    fix_icon=("1386167059528.png")

    not_findable_on_google_grey=("1400241967433.png")
    not_findable_on_google_grey_tooltip=("1389608848128.png")
    not_findable_on_google_green=("1400245107042.png")
    not_findable_on_google_tooltip=("1389608625303.png")
    not_findable_on_google_tooltipclick=("1389608639369.png")
    not_findable_on_google_topbar=("1391002661583.png")

    

    #verify the above images 
    #print str(fix_icon)

    
    PF_common.verify(log_file,not_findable_on_google_green)

    sleep(1)
    hover(not_findable_on_google_green)
    PF_common.verify(log_file,not_findable_on_google_tooltip)
    mouseMove(Location(1000,120))
    click(not_findable_on_google_green)


    PF_common.verify(log_file,not_findable_on_google_topbar)

    PF_common.verify(log_file,not_findable_on_google_selection)
    click(not_findable_on_google_checkbox)
    sleep(3)
    click(fix_icon)


    PF_common.verify(log_file,not_findable_on_google_grey)
开发者ID:avgqa,项目名称:qa-scripts,代码行数:40,代码来源:PF_WebApp_FB01_NotFindableOnGoogle_GreenToGrey_FF_1333.py

示例10: PF_WebApp_FB05_App_Access_On_GreenToGrey_1344

def PF_WebApp_FB05_App_Access_On_GreenToGrey_1344(log_file):
    
    apps_access_gray=("gray.png")
    app_access_green=("green-1.png")
    apps_access_green_mouseover=("green_hover.png")

    top_bar=("top_bar.png")
    fixes_icon=("fixes.png")
    checkbox=("checkbox.png")
    
    save=("save.png")

  
    


    #verify the above images 
    #print str(top_bar)
    PF_common.locate_item_page_by_page(log_file,app_access_green)
    PF_common.verify(log_file,app_access_green)
    hover(app_access_green)

    PF_common.verify(log_file,apps_access_green_mouseover)
    mouseMove(Location(1000,120))
    click(app_access_green)    
    sleep(2)

    PF_common.verify(log_file, top_bar)
    i=0
    while exists(checkbox) and i<3:
        click(checkbox)
        sleep(5)
        i+=1
    click(save)
    sleep(2)
    click(fixes_icon)
    sleep(1) 
    
    PF_common.verify(log_file,apps_access_gray)
开发者ID:avgqa,项目名称:qa-scripts,代码行数:39,代码来源:PF_WebApp_FB06_AppAccessOn_GreenToGrey_FF_1344.py

示例11: set_LK01_grey

def set_LK01_grey(log_file):
    mouseMove(Location(1000,120))
    click(Pattern(LK01_green).similar(0.90))
    PF_common.ifPassword(log_file)
    sleep(5)
    click(Pattern(hidefocus).similar(0.90))

    LK01_radio_button=("LK01_radio_button.png")
    PF_common.verify_continue(log_file, LK01_radio_button)
    click(LK01_radio_button)
    click(LK_save_changes)
    click(fixes)
    mouseMove(Location(1000,100))  
    PF_common.verify_continue(log_file,"LKo1_grey.png")          
    PF_common.write_log_with_screenshot(log_file, "LK01 is set to grey!") 
开发者ID:avgqa,项目名称:qa-scripts,代码行数:15,代码来源:PF_Firefox_setup_1638.py

示例12: set_LK05_grey

def set_LK05_grey(log_file):
    mouseMove(Location(1000,120))
    click(Pattern(LK05_green).similar(0.90))
    PF_common.ifPassword(log_file)
    sleep(5)
    click(Pattern(hidefocus).similar(0.90))
    LK05_only_you=("1390812494339.png")
    PF_common.verify_continue(log_file, LK05_only_you)
    click(LK05_only_you)
    sleep(1)
    click("LK05_your_connections.png");click(LK_save_changes)
    sleep(2)
    click(fixes)
    mouseMove(Location(1000,100))
    PF_common.verify_continue(log_file,"LK05_grey.png")
    PF_common.write_log_with_screenshot(log_file, "LK05 is set to grey!")  
开发者ID:avgqa,项目名称:qa-scripts,代码行数:16,代码来源:PF_Firefox_setup_1638.py

示例13: set_GL01_gray

def set_GL01_gray(log_file):
    GL01_gray=("GL01_gra.png")
    turnON=("turnON.png")
    mouseMove(Location(1000,120))
    click(Pattern(GL01_green).similar(0.90))
    sleep(2)
    PF_common.ifPassword(log_file)
    sleep(5)
    click(Pattern(hidefocus).similar(0.90))
    PF_common.verify_continue(log_file,turnON)
    click(turnON)
    sleep(2)
    click(fixes)
    mouseMove(Location(1000,100))
    sleep(5)
    PF_common.verify_continue(log_file,GL01_gray)
    PF_common.write_log_with_screenshot(log_file, "GL01 is set to grey!") 
开发者ID:avgqa,项目名称:qa-scripts,代码行数:17,代码来源:PF_Firefox_setup_1638.py

示例14: set_GL03_gray

def set_GL03_gray(log_file):
    GL03_gray=("GL03_gra.png")
    settings=("GL_Ads_Settings.png")
    saveB=("Save_GL03.png")
    mouseMove(Location(1000,120))
    click(Pattern(GL03_green).similar(0.90))
    sleep(2)
    PF_common.ifPassword(log_file)
    sleep(5)
    click(Pattern(hidefocus).similar(0.90))    
    PF_common.verify_continue(log_file,saveB)
    click(settings)
    sleep(2)
    click(saveB)
    sleep(2)
    click("1400760028072.png")
    sleep(5)
    PF_common.verify_continue(log_file,GL03_gray)
    PF_common.write_log_with_screenshot(log_file, "GL03 is set to grey!")
开发者ID:avgqa,项目名称:qa-scripts,代码行数:19,代码来源:PF_Firefox_setup_1638.py

示例15: set_FB04_grey

def set_FB04_grey(log_file):
    mouseMove(Location(1000,120))
    click(Pattern(FB04_green).similar(0.90))
    sleep(5)
    click(Pattern(hidefocus).similar(0.90))
    enabled=("enabled.png")
    PF_common.verify_continue(log_file,enabled)
    sleep(2)
    click(enabled)
    sleep(2)
    disabled=("disabled.png")
    PF_common.verify_continue(log_file,disabled)
    click(disabled)
    sleep(2)
    click(fixes)
    sleep(5)
    mouseMove(Location(1000,100)) 
    PF_common.verify_continue(log_file,"TagPreviewOff.png")
            
    PF_common.write_log_with_screenshot(log_file, "FB04 is set to grey!")    
开发者ID:avgqa,项目名称:qa-scripts,代码行数:20,代码来源:PF_Firefox_setup_1638.py


注:本文中的PF_common_FF类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。