update all examples to use correct desired caps

we don't want people getting confused!
This commit is contained in:
Jonathan Lipps
2013-10-24 14:03:17 -07:00
parent 91e21ac13b
commit dd863c7fa8
18 changed files with 38 additions and 39 deletions

View File

@@ -26,9 +26,10 @@ class TestSequenceFunctions(unittest.TestCase):
self.driver = webdriver.Remote(
command_executor='http://%s:%s@ondemand.saucelabs.com:80/wd/hub' % (SAUCE_USERNAME, SAUCE_ACCESS_KEY),
desired_capabilities={
'browserName': 'iOS 6.0',
'browserName': '',
'platform': 'Mac 10.8',
'device': 'iPhone Simulator',
'version': '6.1',
'app': app
})
self._values = []
@@ -40,7 +41,7 @@ class TestSequenceFunctions(unittest.TestCase):
rndNum = randint(0, 10)
elem.send_keys(rndNum)
self._values.append(rndNum)
def _set_test_status(self, jobid, passed=True):
# Report the status of your test to Sauce
body_content = json.dumps({"passed": passed})

View File

@@ -21,7 +21,8 @@ class TestSequenceFunctions(unittest.TestCase):
self.driver = webdriver.Remote(
command_executor='http://127.0.0.1:4723/wd/hub',
desired_capabilities={
'browserName': 'iOS',
'browserName': '',
'device': 'iPhone Simulator',
'platform': 'Mac',
'version': '6.0',
'app': app

View File

@@ -18,7 +18,8 @@ class TestSequenceFunctions(unittest.TestCase):
self.driver = webdriver.Remote(
command_executor='http://127.0.0.1:4723/wd/hub',
desired_capabilities={
'browserName': 'iOS',
'browserName': '',
'device': 'iPhone Simulator',
'platform': 'Mac',
'version': '6.0',
'app': app

View File

@@ -32,7 +32,8 @@ class TestSequenceFunctions(unittest.TestCase):
self.driver = webdriver.Remote(
command_executor='http://127.0.0.1:4723/wd/hub',
desired_capabilities={
'browserName': 'iOS',
'browserName': '',
'device': 'iPhone Simulator',
'platform': 'Mac',
'version': '6.0',
'app': app
@@ -57,7 +58,7 @@ class TestSequenceFunctions(unittest.TestCase):
# there is nav bar inside the app
nav_bar = self.driver.find_element_by_tag_name("navigationBar")
self.assertTrue(nav_bar)
def test_frames(self):
table = self.driver.find_element_by_tag_name("tableView")
self._open_menu_position(7)
@@ -66,7 +67,7 @@ class TestSequenceFunctions(unittest.TestCase):
#find the URL field
textfield = self.driver.find_element_by_name("URL entry")
self.assertEqual(textfield.get_attribute("value"), "http://www.apple.com")
textfield.find_element_by_tag_name("button").click()
# send www.google.com and press the Go button (\n)
textfield.send_keys("http://www.google.com\\n")
@@ -105,7 +106,7 @@ class TestSequenceFunctions(unittest.TestCase):
self.assertTrue(segmented_control.is_displayed())
# row is from previous view, should not be visible
self.assertTrue(self._row.is_displayed())
#verify the text is what we expect
tinted_text = self.driver.find_elements_by_tag_name("text")[4]
self.assertEqual(tinted_text.text, "UISegmentControlStyleBar: (tinted)")
@@ -117,7 +118,7 @@ class TestSequenceFunctions(unittest.TestCase):
self.assertEquals(tinted_buttons[0].get_attribute("value"), '')
self.assertEquals(tinted_buttons[1].get_attribute("value"), '1')
self.assertEquals(tinted_buttons[2].get_attribute("value"), '')
def test_text_field_edit(self):
# go to the text fields section
self._open_menu_position(2)