本文整理汇总了Python中myLib.miro_app.MiroApp.search_tab_search方法的典型用法代码示例。如果您正苦于以下问题:Python MiroApp.search_tab_search方法的具体用法?Python MiroApp.search_tab_search怎么用?Python MiroApp.search_tab_search使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类myLib.miro_app.MiroApp
的用法示例。
在下文中一共展示了MiroApp.search_tab_search方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_322
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import search_tab_search [as 别名]
def test_322(self):
"""http://litmus.pculture.org/show_test.cgi?id=322 search and save as a podcast
1. Perform a search
2. Click off the tab
3. Click back and verify the search is remembered.
4. Cleanup
"""
setAutoWaitTimeout(60)
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.close_prefs()
searches = {"blip": "python",
"YouTube": "cosmicomics",
"Revver": "Beiber",
"Yahoo": "Canada",
"DailyMotion": "Russia",
"Metavid": "africa",
"Mininova": "Creative Commons",
"Goog": "Toronto"}
for engine, term in searches.iteritems():
miro.click_sidebar_tab(reg, "search")
miro.search_tab_search(reg, term, engine)
time.sleep(10)
reg.mtb.click("button_save_as_podcast.png")
if engine == "blip":
saved_search = engine
else:
saved_search = engine +" for"
time.sleep(10) #give some time for everything to load up
miro.click_podcast(reg, saved_search)
miro.shortcut("r")
time.sleep(5)
miro.get_podcasts_region(reg)
miro.tab_search(reg, term)
try:
self.assertTrue(reg.m.exists(engine))
miro.delete_feed(reg, engine)
except:
miro.log_result("322","test 322, failed for " +engine+": "+term, status="fail")
#cleanup
for x in searches.keys():
miro.delete_feed(reg, x)
示例2: test_54
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import search_tab_search [as 别名]
def test_54(self):
"""http://litmus.pculture.org/show_test.cgi?id=54 Test Crash Reporter no DB.
1. Perform a search of crash inducing text
2. Submit crash dialog
3. Quit Miro
"""
print self.id()
setAutoWaitTimeout(60)
reg = MiroRegions()
miro = MiroApp()
term ="LET'S TEST DTV'S CRASH REPORTER TODAY"
miro.click_sidebar_tab(reg, "Search")
miro.search_tab_search(reg, term)
miro.handle_crash_dialog( '54', db=False, test=True)
示例3: test_55
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import search_tab_search [as 别名]
def test_55(self):
"""http://litmus.pculture.org/show_test.cgi?id=55 Test Crash Reporter with DB.
1. Perform a search of crash inducing text
2. Submit crash dialog with db
3. Quit Miro
"""
setAutoWaitTimeout(60)
reg = MiroRegions()
miro = MiroApp()
term ="LET'S TEST DTV'S CRASH REPORTER TODAY"
miro.click_sidebar_tab(reg, "Search")
miro.search_tab_search(reg, term)
miro.handle_crash_dialog( '55', test=True)
miro.search_tab_search(reg, term=" ",engine=None)
示例4: test_82
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import search_tab_search [as 别名]
def test_82(self):
"""http://litmus.pculture.org/show_test.cgi?id=82 remember last search.
1. Perform a search
2. Click off the tab
3. Click back and verify the search is remembered.
4. Cleanup
"""
reg = MiroRegions()
miro = MiroApp()
SEARCHES = {"blip": 'octopus', "YouTube": 'cosmicomics'}
for engine, term in SEARCHES.iteritems():
miro.click_sidebar_tab(reg, "Search")
miro.search_tab_search(reg, term, engine)
miro.click_sidebar_tab(reg, "Videos")
miro.click_sidebar_tab(reg, "Search")
self.assertTrue(reg.mtb.exists(term.upper()))