本文整理汇总了Python中marionette.Marionette.delete_all_cookies方法的典型用法代码示例。如果您正苦于以下问题:Python Marionette.delete_all_cookies方法的具体用法?Python Marionette.delete_all_cookies怎么用?Python Marionette.delete_all_cookies使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类marionette.Marionette
的用法示例。
在下文中一共展示了Marionette.delete_all_cookies方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: enumerate
# 需要导入模块: from marionette import Marionette [as 别名]
# 或者: from marionette.Marionette import delete_all_cookies [as 别名]
# i.e. tests described in a domain-specific list of "other" stuff
# Screenshots only, or should these affect site status?
if hostname in special_screenshots and ENABLE_SPECIAL_SCREENSHOTS:
for ss_index,testdata in enumerate(special_screenshots[hostname]):
for rndr_engine in ['', 'wk-spoof']:
empty_firefox_cache(m)
if rndr_engine is '':
spoof_firefox_android()
else:
spoof_safari_ios()
if 'login_first' in testdata and testdata['login_first'] and hostname not in active_sessions:
login_status = try_login(m, hostname, 1)
if login_status == False: # we'll wait 5 times longer between navigation if first time failed..
login_status = try_login(m, hostname, 5)
elif hostname not in active_sessions:
m.delete_all_cookies()
# TODO: don't drop the return value from load_and_check on the floor, find a way to use it..
load_and_check(testdata['url'], hostname, rndr_engine, str(ss_index), testdata, False, file_desc)
if has_bug_data:
if len(compsteps) > 0:
print 'function(){return '+ ' && '.join(compsteps) +';}'
if compsteps[0] is 'noWapContentPlease':
out_obj[parts[0]] = {
'url':url,
'ua':'FirefoxOS',
'steps': ['noWapContentPlease'],
'testType':'xhr',
'title':parts[1]
}
else: