Skip to content

Instantly share code, notes, and snippets.

@ranbena
Created December 4, 2014 14:25
Show Gist options
  • Save ranbena/7ff9c751de7f7ec71ceb to your computer and use it in GitHub Desktop.
Save ranbena/7ff9c751de7f7ec71ceb to your computer and use it in GitHub Desktop.
EverythingMe Appium boarding test
def test_boarding(self):
# pass 'Select Country' screen
next = self.wait_for_element_by_id('next_btn')
if (next):
next.click()
else:
self.raise_error('Can\'t find the next button on the Select Country boarding screen')
# pass 'Personal Search' screen
next = self.wait_for_element_by_id('next_btn')
if (next):
next.click()
else:
self.raise_error('Can\'t find the next button on the Personal Search boarding screen')
# pass 'Personal Folders' screen
next = self.wait_for_element_by_id('next_btn')
if (next):
next.click()
else:
self.raise_error('Can\'t find the next button on the Personal Folders boarding screen')
# pass 'Personal Apps' screen
next = self.wait_for_element_by_id('done_btn', 20)
if (next):
next.click()
else:
self.raise_error('Can\'t find the next button on the Personal Apps boarding screen')
# pass 'Set default example' screen
next = self.wait_for_element_by_id('done_btn', 20)
if (next):
next.click()
else:
self.raise_error('Can\'t find the next button on the Set default example boarding screen')
self.driver.find_element_by_name('EverythingMe').click()
self.driver.find_element_by_name('Always').click()
try:
self.wait_for_element_by_name('OK').click()
except Exception:
pass
# pass the 'Organize your Apps' screen
next = self.wait_for_element_by_id('next_btn', 20)
if (next):
next.click()
else:
self.raise_error('Can\'t find the next button on the Organize your Apps screen')
# pass 'EverythingMe is ready' screen
get_started = self.wait_for_element_by_id('get_started', 25)
if (get_started):
get_started.click()
else:
self.raise_error('Can\'t find the get started button on the EverythingMe is ready tutorial screen')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment