本文整理汇总了Python中myLib.miro_app.MiroApp.delete_current_selection方法的典型用法代码示例。如果您正苦于以下问题:Python MiroApp.delete_current_selection方法的具体用法?Python MiroApp.delete_current_selection怎么用?Python MiroApp.delete_current_selection使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类myLib.miro_app.MiroApp
的用法示例。
在下文中一共展示了MiroApp.delete_current_selection方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_24
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import delete_current_selection [as 别名]
def test_24(self):
"""http://litmus.pculture.org/show_test.cgi?id=24 edit remembered search.
1. Add 2-stupid-videos feed
2. Perform a search
3. Type in search box the delete key
4. Cleanup
"""
reg = MiroRegions()
miro = MiroApp()
url = "http://pculture.org/feeds_test/2stupidvideos.xml"
feed = "TWO STUPID"
term = "Face"
title = "Flip"
#1. add feed
miro.add_feed(reg, url,feed)
miro.set_podcast_autodownload(reg, setting="All")
#2. search
miro.tab_search(reg, term)
self.assertTrue(reg.m.exists(title))
url2 = "http://pculture.org/feeds_test/list-of-guide-feeds.xml"
feed2 = "Static"
term2 = "FilmWeek"
miro.add_feed(reg, url2,feed2)
miro.tab_search(reg, "Brooklyn")
miro.wait_for_item_in_tab(reg, "Videos",title)
reg.m.click(title)
type(Key.ENTER)
time.sleep(2)
type(" ")
self.assertTrue(exists("playback_controls.png"))
miro.shortcut("d")
reg.s.click(feed2)
self.assertTrue(reg.mtb.exists("BROOKLYN"))
miro.tab_search(reg, term2)
reg.mtb.click("button_save_as_podcast.png")
miro.click_last_podcast(reg)
miro.tab_search(reg, term2,confirm_present=True)
miro.clear_search(reg)
time.sleep(3)
if not reg.mtb.exists(term2.upper()):
miro.log_result("324","test_24",status="pass")
#4. cleanup
miro.delete_feed(reg, "stupid")
miro.click_last_podcast(reg)
miro.delete_current_selection(reg)
miro.delete_feed(reg, "Static List")