本文整理汇总了Python中myLib.miro_app.MiroApp.remove_confirm方法的典型用法代码示例。如果您正苦于以下问题:Python MiroApp.remove_confirm方法的具体用法?Python MiroApp.remove_confirm怎么用?Python MiroApp.remove_confirm使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类myLib.miro_app.MiroApp
的用法示例。
在下文中一共展示了MiroApp.remove_confirm方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_214
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import remove_confirm [as 别名]
def test_214(self):
"""http://litmus.pculture.org/show_test.cgi?id=214 Feed search, search with spaces
1. Add 3 blip videos feed
2. Perform a search with spaces
3. Verify Search saved
4. Cleanup
"""
reg = MiroRegions()
miro = MiroApp()
url = "http://pculture.org/feeds_test/3blipvideos.xml"
feed = "ThreeBlip"
term = "strange creature"
title = "Joo Joo"
#1. add feed
miro.add_feed(reg, url,feed)
#2. search
miro.tab_search(reg, term)
reg.mtb.click("button_save_as_podcast.png")
#3. verify search saved
miro.click_last_podcast(reg)
miro.tab_search(reg, term,confirm_present=True)
#4. cleanup
miro.click_remove_podcast(reg)
miro.remove_confirm(reg, action="remove")
miro.delete_feed(reg, "blip")
miro.delete_feed(reg, feed)
示例2: test_679
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import remove_confirm [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_215
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import remove_confirm [as 别名]
def test_215(self):
"""http://litmus.pculture.org/show_test.cgi?id=215 Feed search, saved search feed
1. Add list of guide feeds (Static List)
2. Perform a search and save it.
3. Verify Search saved
4. Cleanup
"""
reg = MiroRegions()
miro = MiroApp()
url = "http://pculture.org/feeds_test/list-of-guide-feeds.xml"
feed = "Static"
term = "Gimp"
title = "GimpKnowHow"
#1. add feed
miro.add_feed(reg, url, feed)
#2. search
miro.tab_search(reg, term)
reg.mtb.click("button_save_as_podcast.png")
#3. verify search saved
miro.click_last_podcast(reg)
#4. cleanup
type(Key.DELETE)
#Last chance to verify Gimp is the saved search feed.
self.assertTrue(reg.m.exists("GIMP"),5)
miro.remove_confirm(reg, action="remove")
miro.delete_feed(reg, "Static List")
miro.handle_crash_dialog('215', db=False, test=False)
示例4: test_720
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import remove_confirm [as 别名]
def test_720(self):
"""http://litmus.pculture.org/show_test.cgi?id=720 Menu New Search Feed.
1. Add list of guide feeds (Static List)
2. Search in the tab
3. From Sidebar -> New Search feed, create saved search channel
4. Verify Search saved
5. Cleanup
"""
reg = MiroRegions()
miro = MiroApp()
url = "http://pculture.org/feeds_test/list-of-guide-feeds.xml"
feed = "Static"
term = "Voice"
#1. add feed
miro.add_feed(reg, url,feed)
miro.tab_search(reg, term)
#2. search
miro.new_search_feed(reg, term, radio="Podcast", source=feed, defaults=True)
#3. verify search saved
miro.click_last_podcast(reg)
self.assertTrue(reg.m.exists(term, 45))
#4. cleanup
miro.click_remove_podcast(reg)
miro.remove_confirm(reg, action="remove")
miro.delete_feed(reg, "Static List")
示例5: test_78
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import remove_confirm [as 别名]
def test_78(self):
"""http://litmus.pculture.org/show_test.cgi?id=78 Menu New Search Feed.
1. Add list of guide feeds (Static List)
2. From Sidebar -> New Search feed, create saved search channel
3. Verify Search saved
4. Cleanup
"""
reg = MiroRegions()
miro = MiroApp()
url = "http://pculture.org/feeds_test/list-of-guide-feeds.xml"
feed = "Static"
term = "touring"
term2 = "Biking"
title = "Travelling Two"
dummy_feed_url = "http://pculture.org/feeds_test/2stupidvideos.xml"
#1. add feed
miro.add_feed(reg, url,feed)
miro.add_feed(reg, dummy_feed_url,"TWO STUPID")
#2. search
miro.new_search_feed(reg, term,radio="Podcast",source=feed)
time.sleep(5)
#3. verify search saved
miro.click_last_podcast(reg)
self.assertTrue(reg.m.exists(term2))
#4. cleanup
miro.click_remove_podcast(reg)
miro.remove_confirm(reg, action="remove")
miro.delete_feed(reg, "Static List")
示例6: test_143
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import remove_confirm [as 别名]
def test_143(self):
"""http://litmus.pculture.org/show_test.cgi?id=143 multiple delete and cancel.
1. Add clearbits and archive.org
2. select bogh and delete, the cancel
3. verify sites not deleted.
4. Cleanup
"""
site_url = "http://clearbits.net"
site_url2 = "http://archive.org"
site = "ClearBits"
site2 = "Internet"
setAutoWaitTimeout(60)
reg = MiroRegions()
miro = MiroApp()
miro.add_source(reg, site_url,site)
miro.add_source(reg, site_url2,site2)
p = miro.get_sources_region(reg)
p.click(site)
keyDown(Key.SHIFT)
p.click(site2)
keyUp(Key.SHIFT)
if reg.m.exists("Delete All",5) or \
reg.m.exists(Pattern("button_mv_delete_all.png"),5):
click(reg.m.getLastMatch())
else:
self.fail("Delete All button for multi-select not found")
miro.remove_confirm(reg, "cancel")
time.sleep(3)
p = miro.get_sources_region(reg)
time.sleep(3)
self.assertTrue(p.exists(site))
self.assertTrue(p.exists(site2))
#Cleanup
miro.delete_site(reg, site)
miro.delete_site(reg, site2)
示例7: test_641
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import remove_confirm [as 别名]
def test_641(self):
"""http://litmus.pculture.org/show_test.cgi?id=641, delete with invalid url.
Litmus Test Title:: 641 - Deleting podcast with invalid urls
Steps to Perform:
1. Select "Add podcast" from Sidebar menu.
2. Enter URL http://subscribe.getmiro.com/?url1=http%3A%2F%2Fparticipatoryculture.org%2Ffeeds_test%2Ffeed1.rss
3. Click "Create Podcast" button
4. Click "Yes" in "This podcast is not compatible with Miro" window
5. While the podcast is downloading, right click on it and select "Remove" option.
"""
reg = MiroRegions()
miro = MiroApp()
url = "http://subscribe.getmiro.com/?url1=http%3A%2F%2Fparticipatoryculture.org%2Ffeeds_test%2Ffeed1.rss"
feed = "invalid"
#Set Global Preferences
miro.open_prefs(reg)
prefs = PreferencesPanel()
podcasts_tab = prefs.open_tab("Podcasts")
podcasts_tab.autodownload_setting("All")
podcasts_tab.close_prefs()
miro.add_feed(reg, url, feed, click_feed=False)
if exists("anyway",45):
type(Key.ENTER)
miro.click_last_podcast(reg)
type(Key.DELETE)
miro.remove_confirm(reg, "remove")
#Reset autodownload preferences
#Set Global Preferences
miro.open_prefs(reg)
prefs = PreferencesPanel()
podcasts_tab = prefs.open_tab("Podcasts")
podcasts_tab.autodownload_setting("Off")
podcasts_tab.close_prefs()
示例8: test_339
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import remove_confirm [as 别名]
def test_339(self):
"""http://litmus.pculture.org/show_test.cgi?id=339 delete feed with dl items.
Litmus Test Title:: 339 - channels delete a feed with downloaded items
Description:
1. Add the 2-stupid-videos feed, and download both items in the feed.
2. Remove Feed and Keep the videos.
3. Verify videos are displayed in the non-feed section of the Library
4. Cleanup
"""
#set the search regions
reg = MiroRegions()
miro = MiroApp()
url = "http://pculture.org/feeds_test/2stupidvideos.xml"
feed = "TWO STUPID"
#1. Add the feed and start dl
miro.add_feed(reg, url,feed)
time.sleep(3)
miro.toggle_normal(reg)
# miro.count_images(reg, "item-context-button.png",region="mainright",num_expected=2)
miro.set_podcast_autodownload(reg, setting="All")
miro.wait_for_item_in_tab(reg, "videos","Flip")
miro.wait_for_item_in_tab(reg, "videos","Dinosaur")
miro.click_podcast(reg, feed)
type(Key.DELETE)
miro.remove_confirm(reg, action="keep")
miro.click_sidebar_tab(reg, "videos")
miro.tab_search(reg, "Flip",confirm_present=True)
miro.tab_search(reg, "Dinosaur",confirm_present=True)
#4. cleanup
miro.delete_items(reg, "Flip","videos")
miro.delete_items(reg, "Dinosaur","videos")
示例9: test_117
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import remove_confirm [as 别名]
def test_117(self):
"""http://litmus.pculture.org/show_test.cgi?id=117 delete multiple feeds then cancel.
Litmus Test Title:: 117 - delete multiple feeds then cancel
Description:
1. Add several feeds from list of guide feeds
2. Select them all
3. Delete, the cancel the delete
4. Cleanup
"""
#set the search regions
reg = MiroRegions()
miro = MiroApp()
#Set Global Preferences
miro.open_prefs(reg)
prefs = PreferencesPanel()
podcasts_tab = prefs.open_tab("Podcasts")
podcasts_tab.autodownload_setting("Off")
podcasts_tab.default_view_setting("Standard")
podcasts_tab.close_prefs()
url = "http://pculture.org/feeds_test/list-of-guide-feeds.xml"
feed = "Static"
feedlist = ["Center", "Earth"]
#1. Add the feed and start dl
miro.add_feed(reg, url,feed)
for f in feedlist:
miro.tab_search(reg, f)
self.assertTrue(reg.m.exists("Add this"))
reg.m.click("Add this")
time.sleep(4)
miro.tab_search(reg, "")
miro.toggle_normal(reg)
p = miro.get_podcasts_region(reg)
miro.click_sidebar_tab(reg, "Music")
miro.click_podcast(reg, feed)
#2. Select them all
keyDown(Key.SHIFT)
for x in feedlist:
if p.exists(x):
p.click(x)
else:
print "could not find feed" +str(x)
time.sleep(2)
keyUp(Key.SHIFT)
#3. Delete then cancel. Verify still exists Static List
if reg.m.exists("Delete",4) or reg.m.exists("button_mv_delete_all.png",4):
click(reg.m.getLastMatch())
else:
self.fail("Can't find Delete All button in main view")
miro.remove_confirm(reg, "cancel")
p = miro.get_podcasts_region(reg)
time.sleep(5)
self.assertTrue(p.exists("Static",5))
#4. Cleanup
feedlist.append("Static")
for x in feedlist:
print x
miro.delete_feed(reg, x)