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


Python PF_common_FF.locate_item_page_by_page方法代码示例

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


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

示例1: PF_WebApp_FB06_InFacebookAds_OrangeToGrey_1373

# 需要导入模块: import PF_common_FF [as 别名]
# 或者: from PF_common_FF import locate_item_page_by_page [as 别名]
def PF_WebApp_FB06_InFacebookAds_OrangeToGrey_1373(log_file):


    in_facebook_ads=("orange.png")
    in_facebook_ads_hover=("orange_hover.png")

    only_my_friends=("settings.png")
    top_bar=("top_bar.png")
    fix_icon=("Fixes.png")

    in_facebook_ads_grey=("gray.png")

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

    PF_common.verify(log_file,in_facebook_ads_hover)
    mouseMove(Location(1000,120))
    click(in_facebook_ads)    
    sleep(2)
    
    PF_common.verify(log_file,top_bar)
    PF_common.verify(log_file,only_my_friends)    

    click(fix_icon)
    sleep(2)

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

示例2: PF_WebApp_FB05_App_Access_On_OrangeToGreen_1342

# 需要导入模块: import PF_common_FF [as 别名]
# 或者: from PF_common_FF import locate_item_page_by_page [as 别名]
def PF_WebApp_FB05_App_Access_On_OrangeToGreen_1342(log_file):
    
    
    apps_access_orange=("orange.png")
    apps_access_orange_mouseover=("orange_hover.png")
    top_bar=("top_bar.png")
    fixes_icon=("fixes.png")
    settings=("settings.png")
    apps_access_gray=("gray.png")
       

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

    PF_common.verify(log_file,apps_access_orange_mouseover)
    mouseMove(Location(1000,120))
    click(apps_access_orange)    
    sleep(2)
    
    PF_common.verify(log_file,top_bar)
    PF_common.verify(log_file,settings)    

    click(fixes_icon)
    sleep(2)
    PF_common.verify(log_file,apps_access_gray)
开发者ID:avgqa,项目名称:qa-scripts,代码行数:30,代码来源:PF_WebApp_FB06_AppAccessOn_OrangeToGrey_FF_1342.py

示例3: PF_WebApp_FB06_InFacebookAds_GreyToGreen_1374

# 需要导入模块: import PF_common_FF [as 别名]
# 或者: from PF_common_FF import locate_item_page_by_page [as 别名]
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,代码行数:36,代码来源:PF_WebApp_FB07_InFacebookAds_GreyToGreen_1374.py

示例4: PF_WebApp_FB01_FindableOnGoogle_OrangeToGrey_FF1306

# 需要导入模块: import PF_common_FF [as 别名]
# 或者: from PF_common_FF import locate_item_page_by_page [as 别名]
def PF_WebApp_FB01_FindableOnGoogle_OrangeToGrey_FF1306(log_file):
    
        
    findable_on_google_orange=("orange.png")
    findable_on_google_tooltip=("orange_hover.png")
    findable_on_google_selection=("settings.png")
    
    fix_icon=("Fixes.png")

    findable_on_google_grey=("gray.png")
    findable_on_google_topbar=("1391002554576.png")
    

    #verify the above images 
    #print str(fix_icon)
    PF_common.locate_item_page_by_page(log_file,findable_on_google_orange)
    PF_common.verify(log_file,findable_on_google_orange)
    hover(findable_on_google_orange)

    PF_common.verify(log_file,findable_on_google_tooltip)
    mouseMove(Location(1000,120))
    click(findable_on_google_orange)


    PF_common.verify(log_file,findable_on_google_topbar)
 
    PF_common.verify(log_file,findable_on_google_selection)
    
    PF_common.verify(log_file,fix_icon)
    click(fix_icon)

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

示例5: PF_WebApp_FB06_NotInFacebookAds_GreenToGrey_1375

# 需要导入模块: import PF_common_FF [as 别名]
# 或者: from PF_common_FF import locate_item_page_by_page [as 别名]
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,代码行数:36,代码来源:PF_WebApp_FB07_NotInFacebookAds_GreenToGrey_1375.py

示例6: PF_WebApp_TW02_LocationMayBeTweeted_OrangeToGrey_2381

# 需要导入模块: import PF_common_FF [as 别名]
# 或者: from PF_common_FF import locate_item_page_by_page [as 别名]
def PF_WebApp_TW02_LocationMayBeTweeted_OrangeToGrey_2381(log_file):
    Location_orange=("1400845033555.png")
    Location_orange_hover=("1400845113837.png")
    top_bar=("1400845140328.png")
    Location_settings=("1400845165882.png")
    fix_icon=("1400833112992.png")
    Location_grey=("1400845205725.png")



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

    PF_common.verify(log_file,Location_orange_hover)
    mouseMove(Location(1000,120))
    click(Location_orange)    
    sleep(2)
    
    PF_common.verify(log_file,top_bar)
    PF_common.verify(log_file,Location_settings)    

    click(fix_icon)
    sleep(2)
    PF_common.verify(log_file,Location_grey)
开发者ID:avgqa,项目名称:qa-scripts,代码行数:27,代码来源:PF_WebApp_TW02_LocationMayBeTweeted_OrangeToGrey_2381.py

示例7: PF_WebApp_FB07_CrowdControl_OrangeToGreen_FF_255

# 需要导入模块: import PF_common_FF [as 别名]
# 或者: from PF_common_FF import locate_item_page_by_page [as 别名]
def PF_WebApp_FB07_CrowdControl_OrangeToGreen_FF_255(log_file):
    
    orange=("orange.png")
    hover_orange=("orange_hover.png")
    okay=(Pattern("okay.png").similar(0.91))
    crowdcontrol=("top_bar.png")
    
    
    fixes=("fixes.png")
    green=("green.png")
    hover_green=("green_hover.png")

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

    PF_common.verify(log_file,hover_orange)
    mouseMove(Location(1000,120))
    click(orange)    
    sleep(5)

    while exists(okay):
        click(okay)
        sleep(5)
                
        
    PF_common.verify(log_file,crowdcontrol)
    click(fixes)
    PF_common.verify(log_file,green)
    hover(green)
    PF_common.verify(log_file,hover_green)  
开发者ID:avgqa,项目名称:qa-scripts,代码行数:35,代码来源:PF_WebApp_FB08_CrowdControl_OrangeToGreen_FF_255.py

示例8: PF_WebApp_TW03_NotFindableByEmailAddress_GreenToGray_2387

# 需要导入模块: import PF_common_FF [as 别名]
# 或者: from PF_common_FF import locate_item_page_by_page [as 别名]
def PF_WebApp_TW03_NotFindableByEmailAddress_GreenToGray_2387(log_file):

    Findable_green=("1400849978839.png")
    Findable_green_hover=("1400850001947.png")
    top_bar=("1400850022603.png")
    Findable_settings=("1400850069843.png")
    Findable_Changes=("1400850093315.png")
    save=("1400843325516.png")
    save_account=("1400844282826.png")
    Findable_select=("1400850143169.png")
    fix_icon=("1400843438662.png")
    Findable_gray=("1400850174843.png")

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


    PF_common.verify(log_file,Findable_green_hover)
    mouseMove(Location(1000,120))
    click(Findable_green)
   
    PF_common.verify(log_file,top_bar)
    PF_common.verify(log_file,Findable_settings)
    sleep(1)
    click(Pattern(Findable_Changes).similar(0.95))
    sleep(3)
    PF_common.locate_item_page_by_page(log_file,save)
    click(save)
    sleep(2)
    click(save_account)
    type("US!pf.avg")
    type(Key.ENTER)
    sleep(5)

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

示例9: PF_WebApp_TW03_FindableByEmailAddress_GrayToGreen_2385

# 需要导入模块: import PF_common_FF [as 别名]
# 或者: from PF_common_FF import locate_item_page_by_page [as 别名]
def PF_WebApp_TW03_FindableByEmailAddress_GrayToGreen_2385(log_file):

    Findable_gray=("1400849215246.png")
    Findable_gray_hover=("1400849235718.png")
    top_bar=("1400849254835.png")
    Findable_settings=("1400849279878.png")
    Findable_Changes=("1400849305722.png")
    save=("1400839756774.png")
    save_account=("1400840289267.png")
        
    Findable_uncheck=("1400849357407.png")
    fix_icon=("1400839874197.png")
    Findable_green=("1400849391311.png")

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


    PF_common.verify(log_file,Findable_gray_hover)
    mouseMove(Location(1000,120))
    click(Findable_gray)
   
    PF_common.verify(log_file,top_bar)
    PF_common.verify(log_file,Findable_settings)
    sleep(1)
    click(Pattern(Findable_Changes).similar(0.95))
    sleep(3)
    PF_common.locate_item_page_by_page(log_file,save)
    click(save)
    sleep(2)
    click(save_account)
    type("US!pf.avg")
    type(Key.ENTER)
    sleep(5)

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

示例10: PF_WebApp_TW02_LocationMayBeTweeted_GrayToGreen_2383

# 需要导入模块: import PF_common_FF [as 别名]
# 或者: from PF_common_FF import locate_item_page_by_page [as 别名]
def PF_WebApp_TW02_LocationMayBeTweeted_GrayToGreen_2383(log_file):

    Location_gray=("1400845816269.png")
    Location_gray_hover=("1400839535542.png")
    top_bar=("1400845895130.png")
    Location_settings=("1400845918937.png")
    Location_Changes=("1400845948342.png")
    save=("1400839756774.png")
    save_account=("1400840289267.png")
        
    Location_uncheck=("1400846017774.png")
    fix_icon=("1400839874197.png")
    Location_green=("1400846066919.png")

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


    PF_common.verify(log_file,Location_gray_hover)
    mouseMove(Location(1000,120))
    click(Location_gray)
   
    PF_common.verify(log_file,top_bar)
    PF_common.verify(log_file,Location_settings)
    sleep(1)
    click(Pattern(Location_Changes).similar(0.95))
    sleep(3)
    PF_common.locate_item_page_by_page(log_file,save)
    click(save)
    sleep(2)
    click(save_account)
    type("US!pf.avg")
    type(Key.ENTER)
    sleep(5)

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

示例11: PF_WebApp_TW02_LocationNotTweeted_GreenToGray_2386

# 需要导入模块: import PF_common_FF [as 别名]
# 或者: from PF_common_FF import locate_item_page_by_page [as 别名]
def PF_WebApp_TW02_LocationNotTweeted_GreenToGray_2386(log_file):

    Location_green=("1400846639482.png")
    Location_green_hover=("1400846657665.png")
    top_bar=("1400846677757.png")
    Location_settings=("1400846699360.png")
    Location_Changes=("1400846735792.png")
    save=("1400843325516.png")
    save_account=("1400844282826.png")
    Location_select=("1400846806242.png")
    fix_icon=("1400843438662.png")
    Location_gray=("1400846839616.png")

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


    PF_common.verify(log_file,Location_green_hover)
    mouseMove(Location(1000,120))
    click(Location_green)
   
    PF_common.verify(log_file,top_bar)
    PF_common.verify(log_file,Location_settings)
    sleep(1)
    click(Pattern(Location_Changes).similar(0.95))
    sleep(3)
    PF_common.locate_item_page_by_page(log_file,save)
    click(save)
    sleep(2)
    click(save_account)
    type("US!pf.avg")
    type(Key.ENTER)
    sleep(5)

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

示例12: PF_WebApp_TW01_PhotosNotTaggable_GreenToGrey_2378

# 需要导入模块: import PF_common_FF [as 别名]
# 或者: from PF_common_FF import locate_item_page_by_page [as 别名]
def PF_WebApp_TW01_PhotosNotTaggable_GreenToGrey_2378(log_file):

    PhotosNotTaggable_green=("1400843143788.png")
    PhotosNotTaggable_hover=("1400843178292.png")
    top_bar=("1400843209841.png")
    PhotosTaggable_settings=("1400843250240.png")
    PhotosTaggable_Changes=("1400843281796.png")
    save=("1400843325516.png")
    save_account=("1400844282826.png")
    PhotosTaggable_Allow=("1400843418081.png")
    fix_icon=("1400843438662.png")
    PhotosTaggable_grey=("1400843478619.png")

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


    PF_common.verify(log_file,PhotosNotTaggable_hover)
    mouseMove(Location(1000,120))
    click(PhotosNotTaggable_green)
   
    PF_common.verify(log_file,top_bar)
    PF_common.verify(log_file,PhotosTaggable_settings)
    sleep(1)
    click(Pattern(PhotosTaggable_Changes).similar(0.95))
    sleep(3)
    PF_common.locate_item_page_by_page(log_file,save)
    click(save)
    sleep(2)
    click(save_account)
    type("US!pf.avg")
    type(Key.ENTER)
    sleep(5)

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

示例13: PF_WebApp_FB05_CleanYouTimeline_GreyToGreen_1343

# 需要导入模块: import PF_common_FF [as 别名]
# 或者: from PF_common_FF import locate_item_page_by_page [as 别名]
def PF_WebApp_FB05_CleanYouTimeline_GreyToGreen_1343(log_file):
   

    apps_access_gray=("gray.png")
    apps_access_gray_mouseover=("gray_hover.png")
    top_bar=("top_bar.png")
    fixes_icon=("fixes.png")
    checkbox=("checkbox.png")
    
    save=("save.png")
    app_access_green=("green.png")

  
    
       

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

    PF_common.verify(log_file,apps_access_gray_mouseover)
    mouseMove(Location(1000,120))
    click(apps_access_gray)    
    sleep(2)
    
    PF_common.verify(log_file, top_bar)
    sleep(1)
    PF_common.verify(log_file,checkbox)
    while exists(checkbox):
        click(checkbox)
        sleep(2)
 
    click(save)
    sleep(2)
    click(fixes_icon)
    sleep(1)
    PF_common.verify(log_file,app_access_green)
开发者ID:avgqa,项目名称:qa-scripts,代码行数:41,代码来源:PF_WebApp_FB06_AppAccessOn_GreyToGreen_FF_1343.py

示例14: PF_WebApp_FB04_TagPreview_GreyToGreen_FF1351

# 需要导入模块: import PF_common_FF [as 别名]
# 或者: from PF_common_FF import locate_item_page_by_page [as 别名]
def PF_WebApp_FB04_TagPreview_GreyToGreen_FF1351 (log_file):

    
    tag_preview_selection=("disabled.png")
    fix_icon=("Fixes.png")
    tag_preview_grey=("grey-1.png")
    tag_previw_grey_tooltip=("grey_hover.png")
    tag_preview_choice=("choice.png")
    tag_preview_choiceclick=("enabled.png")
    tag_preview_green=("Green.png")
    tag_preview_topbar=("Top_bar.png")

    

    #verify the above images 
    #print str(fix_icon)

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

    PF_common.verify(log_file,tag_previw_grey_tooltip)
    mouseMove(Location(1000,120))    
    click(tag_preview_grey)
    sleep(5)

    PF_common.verify(log_file,tag_preview_topbar)

    PF_common.verify(log_file,tag_preview_selection)
    sleep(1)
    PF_common.verify(log_file,tag_preview_selection)
    click(tag_preview_selection)

    PF_common.verify(log_file,tag_preview_choice)
    click(tag_preview_choiceclick)
    sleep(3)
    click(fix_icon)

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

示例15: PF_WebApp_FB01_FindableOnGoogle_GreyToGreen_FF1331

# 需要导入模块: import PF_common_FF [as 别名]
# 或者: from PF_common_FF import locate_item_page_by_page [as 别名]
def PF_WebApp_FB01_FindableOnGoogle_GreyToGreen_FF1331(log_file):
    
    findable_on_google_selection=("1397117036626.png")
    
    findable_on_google_checkbox=("1397117240567.png")
    
    fix_icon=("1387460386340.png")
    findable_on_google_grey=("1400241967433.png")
 #   findable_on_google_tooltipclick=("1400241985715.png")
    findable_on_google_tooltip=("1390307607481.png")
    findable_on_google_choice=("1397117076125.png")
    
    findable_on_google_choiceclick=("1397117082207.png")
    
    findable_on_google_green=("1400244886104.png")
    findable_on_google_topbar=("1391002644977.png")


    PF_common_FF.locate_item_page_by_page(log_file,findable_on_google_grey)
    PF_common_FF.verify(log_file,findable_on_google_grey)
    hover(findable_on_google_grey)
    
    PF_common_FF.verify(log_file,findable_on_google_tooltip)
    mouseMove(Location(1000,120))
    click(findable_on_google_grey)


    PF_common_FF.verify(log_file,findable_on_google_topbar)


    PF_common_FF.verify(log_file,findable_on_google_selection)
    click(findable_on_google_checkbox)

    PF_common_FF.verify(log_file,findable_on_google_choice)
    click(findable_on_google_choiceclick)
    sleep(3)
    click(fix_icon)
    sleep(3)
    PF_common_FF.verify(log_file,findable_on_google_green)
开发者ID:avgqa,项目名称:qa-scripts,代码行数:41,代码来源:PF_WebApp_FB01_FindableOnGoogle_GreyToGreen_FF_1331.py


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