Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
32 lines (24 loc) · 1.02 KB

File metadata and controls

32 lines (24 loc) · 1.02 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from appium import webdriver
from appium import SauceTestCase, on_platforms
app = "http://appium.s3.amazonaws.com/NotesList.apk"
platforms = [{
"platformName": "Android",
"platformVersion": "4.4",
"deviceName": "Android Emulator",
"appPackage": "com.example.android.notepad",
"appActivity": ".NotesList",
"app": app,
"appiumVersion": "1.3.4"
}]
@on_platforms(platforms)
class SimpleAndroidSauceTests(SauceTestCase):
def test_create_note(self):
el = self.driver.find_element_by_accessibility_id("New note")
el.click()
el = self.driver.find_element_by_class_name("android.widget.EditText")
el.send_keys("This is a new note!")
el = self.driver.find_element_by_accessibility_id("Save")
el.click()
els = self.driver.find_elements_by_class_name("android.widget.TextView")
self.assertEqual(els[2].text, "This is a new note!")
els[2].click()
Morty Proxy This is a proxified and sanitized view of the page, visit original site.