Example #1
0
 def __init__(self):
     super(AddMoviePage, self).__init__()
     self.form_dict = {
         'title': s('//input[@name="name"]', ui='TextField'),
         'year': s('//input[@name="year"]', ui='TextField'),
         'imdb': s('//input[@id="imdbsearch"]', ui='TextField')
     }
     self.save_button = s('//img[@title="Save"]')
Example #2
0
    def test_tasks_life_cycle(self):
        visit("http://todomvc.com/examples/troopjs_require/#/")

        s("#new-todo").send_keys("a" + Keys.ENTER)

        ss("#todo-list>li").find(text, "a").s("label").double_click()
Example #3
0
 def __init__(self):
     self.login = s('//input[@id="username"]', ui='TextField')
     self.password = s('//input[@type="password"]', ui='TextField')
     self.button = s('//input[@type="submit"]')
Example #4
0
 def __init__(self):
     super(HomePage, self).__init__()
     self.movies_list = ss('//div[@class="title"]')
     self.add_button = s('//a[@href="./?go=add"]')
Example #5
0
 def __init__(self):
     super(MoviePage, self).__init__()
     self.title = s('//h2')
     self.remove_button = s('//img[@title="Remove"]')
Example #6
0
def filter_completed():
    s("[href*='completed']").click()
Example #7
0
 def __init__(self):
     self.logout = s('//a[@onclick]')
     self.home = s('(.//header//nav//a)[1]')
Example #8
0
def filter_active():
    s("[href*='active']").click()
Example #9
0
def filter_all():
    s("[href='#/']").click()
Example #10
0
def clear_completed():
    s("#clear-completed").click()
Example #11
0
def toggle_all():
    s("#toggle-all").click()
Example #12
0
def add(task_name):
    s("#new-todo").send_keys(task_name + Keys.ENTER)