def tasks(self):
     tasks = [Task("self.client.navigate('http://mozilla.org')", self.client,
                   meta={'website': 'http://mozilla.org'}),
              Task("self.client.go_back()", self.client, meta={'website': 'HOME'}),
              Task("self.client.go_forward()", self.client, meta={'website': 'http://mozilla.org'})
              ]
     return tasks
 def tasks(self):
     tasks = [
         Task('time.sleep(300)', self.client, meta={'website': 'HOME'}),
         # go to Mozilla.org
         Task("self.client.navigate('https://slate.com')", self.client,
              meta={'website': 'https://slate.com/'}),
         # wait for 2 minutes
         Task('time.sleep(600)', self.client, meta={'website': 'HOME'}),
     ]
     return tasks
예제 #3
0
 def tasks(self):
     tasks = [
         Task('time.sleep(10)', self.client, meta={'website': 'HOME'}),
         # go to Mozilla.org
         # Task("self.client.navigate('https://www.twitch.tv/')", self.client,
       # Task("self.client.navigate('http://example.com/browser/widget/tests/browser/dummy.html')", self.client,
         Task("self.client.navigate('https://www.slate.com')", self.client,
              meta={'website': 'https://twitch.com/'}),
         # wait for 2 minutes
         Task('time.sleep(10)', self.client, meta={'website': 'HOME'}),
     ]
     return tasks
예제 #4
0
 def tasks(self):
     tasks = [
         Task('time.sleep(30)', self.client, meta={'website': 'HOME'}),
         Task("self.client.navigate('https://lingscars.com/')", self.client,
              meta={'website': 'https://lingscars.com/'}),
         Task('time.sleep(60)', self.client,
              meta={'website': 'https://lingscars.com/'}),
         Task("self.client.navigate('about:newtab')", self.client,
              meta={'website': 'HOME'}),
         Task('time.sleep(30)', self.client,
              meta={'website': 'HOME'}),
     ]
     return tasks
    def tasks(self):
        tasks = [
            # wait for 2 minutes
            Task('time.sleep(300)', self.client, meta={'website': 'HOME'}),
            # go to Mozilla.org
<<<<<<< HEAD
            Task("self.client.navigate('https://google.com')", self.client,
                 meta={'website': 'https://google.com/'}),
=======
            Task("https://www.google.com/')", self.client,
                 meta={'website': 'https://www.google.com/'}),
>>>>>>> 896f7fac4952d3242ce08dd1aee75f49c0f4b1fa
            # wait for 2 minutes
            Task('time.sleep(600)', self.client, meta={'website': 'HOME'}),
        ]
        return tasks
 def tasks(self):
     tasks = [
         Task("self.client.navigate('about:blank')", self.client,
              meta={'website': 'HOME'}),
         Task('time.sleep(60)', self.client, # Deal with ghost windows
              meta={'website': 'HOME'}),
         Task("self.client.navigate('{}')".format(uri), self.client,
              meta={'website': uri}),
         Task('time.sleep(60)', self.client,
              meta={'website': uri}),
         Task("self.client.navigate('about:blank')", self.client,
              meta={'website': 'HOME'}),
         Task('time.sleep(30)', self.client,
              meta={'website': 'HOME'}),
         # One last task to keep the browser alive while we dump counters
         Task('time.sleep(5)', self.client,
              meta={'website': 'HOME'}),
     ]
     return tasks
예제 #7
0
 def tasks(self):
     tasks = [
         # wait for 2 minutes
         Task('time.sleep(900)', self.client, meta={'website': 'HOME'}),
     ]
     return tasks
예제 #8
0
 def tasks(self):
     tasks = [
         # wait for 2 minutes
         Task('time.sleep(120)', self.client, meta={'website': 'HOME'}),
         # go to Mozilla.org
         Task("self.client.navigate('http://mozilla.org')",
              self.client,
              meta={'website': 'http://mozilla.org'}),
         # wait for 2 minutes
         Task('time.sleep(120)', self.client, meta={'website': 'HOME'}),
         # go back HOME
         Task("self.client.go_back()",
              self.client,
              meta={'website': 'HOME'}),
         # wait for 2 minutes
         Task('time.sleep(120)', self.client, meta={'website': 'HOME'}),
         # go to Mozilla.org
         Task("self.client.go_forward()",
              self.client,
              meta={'website': 'http://mozilla.org'}),
         # wait for 30 seconds
         Task('time.sleep(30)', self.client, meta={'website': 'HOME'}),
         # go to Twitch
         Task("self.client.navigate('https://www.twitch.tv')",
              self.client,
              meta={'website': 'https://www.twitch.tv'}),
         # wait for 2 minutes
         Task('time.sleep(120)',
              self.client,
              meta={'website': 'https://www.twitch.tv'}),
         # go to Twitch: Fortnite
         Task(
             "self.client.navigate('https://www.twitch.tv/directory/game/Fortnite')",
             self.client,
             meta={
                 'website': 'https://www.twitch.tv/directory/game/Fortnite'
             }),
         # wait for 2 minutes
         Task('time.sleep(120)',
              self.client,
              meta={
                  'website': 'https://www.twitch.tv/directory/game/Fortnite'
              }),
         # go to Twitch: Fortnite
         Task(
             "self.client.navigate('https://www.twitch.tv/directory/game/Fortnite')",
             self.client,
             meta={
                 'website': 'https://www.twitch.tv/directory/game/Fortnite'
             }),
         # wait for 2 minutes
         Task('time.sleep(120)',
              self.client,
              meta={
                  'website': 'https://www.twitch.tv/directory/game/Fortnite'
              }),
         # go to Firefox Add-ons, back and forward
         Task(
             "self.client.navigate('https://addons.mozilla.org/en-US/firefox/')",
             self.client,
             meta={'website': 'https://addons.mozilla.org/en-US/firefox/'}),
         Task("self.client.go_back()",
              self.client,
              meta={
                  'website': 'https://www.twitch.tv/directory/game/Fortnite'
              }),
         Task("self.client.go_forward()",
              self.client,
              meta={'website':
                    'https://addons.mozilla.org/en-US/firefox/'}),
         # wait for 2 minutes
         Task('time.sleep(120)', self.client, meta={'website': 'HOME'}),
     ]
     return tasks