-
Notifications
You must be signed in to change notification settings - Fork 7
/
test_h5.py
26 lines (22 loc) · 997 Bytes
/
test_h5.py
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
import unittest
from appium import webdriver
class TestH5(unittest.TestCase):
def setUp(self):
caps={}
caps["platformName"]="android"
caps["deviceName"]="seveniruby"
#caps["browserName"]="chrome"
caps["browserName"]="Browser"
caps["noReset"]="true"
caps["fullReset"]="false"
caps["forceMjsonwp"]="true"
caps["dontStopAppOnReset"]="true"
self.driver=webdriver.Remote("http://127.0.0.1:4723/wd/hub", caps)
self.driver.implicitly_wait(10)
def test_main(self):
self.driver.get("https://danjuanapp.com/my-money?channel=1300100158&refer=xq_trade")
self.driver.find_element_by_css_selector(".btns .blank").click()
self.driver.find_element_by_css_selector(".pass_switch").click()
self.driver.find_element_by_name("telno").send_keys("15600534760")
self.driver.find_element_by_name("pass").send_keys("password")
self.driver.find_element_by_id("next").click()