本文整理汇总了Python中myLib.miro_app.MiroApp.click_playlist方法的典型用法代码示例。如果您正苦于以下问题:Python MiroApp.click_playlist方法的具体用法?Python MiroApp.click_playlist怎么用?Python MiroApp.click_playlist使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类myLib.miro_app.MiroApp
的用法示例。
在下文中一共展示了MiroApp.click_playlist方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_709
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import click_playlist [as 别名]
def test_709(self):
"""http://litmus.pculture.org/show_test.cgi?id=709 create playlist from library search.
1. add a watched folder to get some items in the db
2. search in music tab
3. click Add to Playist button
4. accept name and verify created
"""
watched_feed = "TestData"
playlist = "Johnson"
item_list = ["Pancakes","Horizon"]
reg = MiroRegions()
miro = MiroApp()
p = miro.get_podcasts_region(reg)
miro.click_sidebar_tab(reg, "Music")
miro.tab_search(reg, playlist)
reg.mtb.click(Pattern("button_save_as_playlist.png"))
time.sleep(3)
type(Key.ENTER)
miro.click_playlist(reg, playlist.upper())
miro.toggle_normal(reg)
for title in item_list:
miro.tab_search(reg, title,confirm_present=True)
示例2: test_679
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import click_playlist [as 别名]
def test_679(self):
"""http://litmus.pculture.org/show_test.cgi?id=679 create a playlist via menu.
Also verifies test_222, remove playlist (via context menu)
1. add a watched folder to get some items in the db
2. select the items and create a new playlist from menu
3. verify items in list
4. repeat with context menu and verify
"""
playlist = "EMPTY LIST"
reg = MiroRegions()
miro = MiroApp()
miro.add_playlist(reg, playlist,style="menu")
p = miro.get_playlists_region(reg)
list_loc = miro.click_playlist(reg, playlist)
rightClick(Location(list_loc))
p.click("Remove")
miro.remove_confirm(reg, "remove")
time.sleep(2)
if p.exists(playlist):
print "remove failed"
else:
miro.log_result("222","verified remove playlist via context menu")
示例3: test_221
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import click_playlist [as 别名]
def test_221(self):
"""http://litmus.pculture.org/show_test.cgi?id=221 rename playlist.
"""
playlist = "TAB LIST"
reg = MiroRegions()
miro = MiroApp()
miro.add_playlist(reg, playlist,style="tab")
miro.log_result("708","test_221 - added playlist via Playlist top level tab")
list_loc = miro.click_playlist(reg, playlist)
print list_loc
rightClick(Location(list_loc))
type(Key.DOWN)
type(Key.ENTER)
time.sleep(2)
type("NEW NAME \n")
miro.click_playlist(reg, playlist="NEW NAME")