本文整理汇总了Python中myLib.miro_app.MiroApp.multi_select方法的典型用法代码示例。如果您正苦于以下问题:Python MiroApp.multi_select方法的具体用法?Python MiroApp.multi_select怎么用?Python MiroApp.multi_select使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类myLib.miro_app.MiroApp
的用法示例。
在下文中一共展示了MiroApp.multi_select方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_116
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import multi_select [as 别名]
def test_116(self):
"""http://litmus.pculture.org/show_test.cgi?id=116 add multiple feeds to a folder
Litmus Test Title:: 116 - add multiple feeds to a new folder
Description:
1. Import 2 OPML file of some feeds and folders
2. select several feeds and add to new folder
3. confirm feeds in folders
4. Cleanup
"""
setAutoWaitTimeout(myLib.testvars.timeout)
#set the search regions
reg = MiroRegions()
miro = MiroApp()
miro.delete_all_podcasts(reg)
opml_path = os.path.join(os.getenv("PCF_TEST_HOME"),"Miro","TestData","folder-test.opml")
opml_path2 = os.path.join(os.getenv("PCF_TEST_HOME"),"Miro","TestData","folder-test2.opml")
feed_list = ["Google", "Onion","two ronnies","Vimeo"]
added_feeds = []
new_folder = "multi folder"
#1. Add the feeds
miro.import_opml(reg, opml_path)
time.sleep(15) #give a chance to add and update
miro.import_opml(reg, opml_path2)
time.sleep(15) #give a chance to add and update
#expand all the folders
p = miro.get_podcasts_region(reg)
miro.expand_feed_folder(reg, "GEEKY")
miro.expand_feed_folder(reg, "FUN")
#set the feeds region
p = miro.get_podcasts_region(reg)
#select multiple feeds for the folders
p.click("BIRCHBOXTV")
added_feeds = miro.multi_select(region=p,item_list=feed_list)
if len(added_feeds) > 0:
added_feeds.append("BIRCHBOXTV")
else:
self.fail("feeds not selected properly for adding to a folder")
time.sleep(5)
reg.m.click("New Folder")
time.sleep(2)
type(new_folder + "\n")
time.sleep(5)
feed_match = miro.click_podcast(reg, new_folder)
rightClick(Location(feed_match))
if exists("Update",2):
click(getLastMatch())
try:
for feed in added_feeds:
assert miro.tab_search(reg, title=feed,confirm_present=True), True
except:
self.fail("%s feed not found" % feed)
finally:
#cleanup
miro.delete_all_podcasts(reg)