本文整理汇总了Python中gaiatest.apps.calendar.app.Calendar.a11y_click_day_view_event方法的典型用法代码示例。如果您正苦于以下问题:Python Calendar.a11y_click_day_view_event方法的具体用法?Python Calendar.a11y_click_day_view_event怎么用?Python Calendar.a11y_click_day_view_event使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gaiatest.apps.calendar.app.Calendar
的用法示例。
在下文中一共展示了Calendar.a11y_click_day_view_event方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: TestCalendarDayViewAccessibility
# 需要导入模块: from gaiatest.apps.calendar.app import Calendar [as 别名]
# 或者: from gaiatest.apps.calendar.app.Calendar import a11y_click_day_view_event [as 别名]
class TestCalendarDayViewAccessibility(GaiaTestCase):
def setUp(self):
GaiaTestCase.setUp(self)
self.calendar = Calendar(self.marionette)
self.calendar.launch()
self.event_title = 'title'
self.calendar.a11y_create_event(self.event_title)
def test_a11y_calendar_day_view(self):
self.calendar.a11y_click_day_display_button()
# Click on the all day section to create an event.
element = Wait(self.marionette).until(
expected.element_present(*self.calendar._day_view_all_day_button))
Wait(self.marionette).until(expected.element_displayed(element))
self.accessibility.click(element)
# wait for new event
new_event = self.calendar.wait_for_new_event()
self.assertTrue(self.accessibility.is_visible(self.marionette.find_element(
*self.calendar._modify_event_view_locator)))
# close new event
new_event.a11y_click_close_button()
self.assertTrue(self.accessibility.is_visible(self.marionette.find_element(
*self.calendar._day_view_locator)))
# open existing event detail
event_detail = self.calendar.a11y_click_day_view_event()
self.assertTrue(self.accessibility.is_visible(self.marionette.find_element(
*self.calendar._event_view_locator)))
# Make sure that the title and the location correspond to the selected event.
self.assertEquals(event_detail.title, self.event_title)