from selenium.webdriver.common.by import By



# 点击账号登录
password_login = [(By.ID, 'com.wanmeizhensuo.zhensuo:id/tv_password_login', 5),
                  (By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.TextView[1]', 5)]

#先逛逛
guangguang = [(By.ID,'com.wanmeizhensuo.zhensuo:id/btnJumpOver',5),(By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.TextView[1]',5)]

# 其他账号登录按钮点击
another_login = [(By.ID,'com.wanmeizhensuo.zhensuo:id/tvOtherPhoneLogin',5),(By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.TextView[6]',5)]


# 获取验证码按钮
Verification_code = [(By.ID,'com.wanmeizhensuo.zhensuo:id/account_authentication_tv_get_verifycode',5),(By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.RelativeLayout/android.widget.RelativeLayout[2]/android.widget.LinearLayout/android.widget.LinearLayout/android.widget.TextView',5)]

# 手机号输入
login_sendkeys_username = [(By.ID,'com.wanmeizhensuo.zhensuo:id/account_authentication_et_typeface',5),(By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.RelativeLayout/android.widget.RelativeLayout[1]/android.widget.EditText[2]',5)]
# 验证码输入
login_sendkeys_Verification = [(By.ID,'com.wanmeizhensuo.zhensuo:id/account_authentication_et_verify_label',5),(By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.RelativeLayout/android.widget.RelativeLayout[2]/android.widget.EditText',5)]

# 立即登录按钮
login_button = [(By.ID,'com.wanmeizhensuo.zhensuo:id/account_authentication_tv_main',5),(By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.RelativeLayout/android.widget.RelativeLayout[3]/android.widget.TextView',5)]

#协议按钮点击
agreement = [(By.ID,'com.wanmeizhensuo.zhensuo:id/rb_privacy_licence',5),(By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.RelativeLayout/android.widget.RelativeLayout[3]/android.widget.LinearLayout/android.widget.CheckBox',5)]

#点击账号框
click_username = [(By.ID, 'com.wanmeizhensuo.zhensuo:id/account_authentication_et_typeface', 5),
                  (By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.RelativeLayout/android.widget.RelativeLayout[1]/android.widget.EditText[2]',5)]

# 输入账号
sendkeys_username = [(By.ID, 'com.wanmeizhensuo.zhensuo:id/account_authentication_et_phone_number', 5),
                  (By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.RelativeLayout/android.widget.RelativeLayout[1]/android.widget.EditText[1]',5)]

username = "17601625117"

# 输入密码
sendkeys_password = [(By.ID, 'com.wanmeizhensuo.zhensuo:id/account_authentication_et_verify_label', 5),
                     (By.XPATH,
                      '/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.RelativeLayout/android.widget.RelativeLayout[2]/android.widget.EditText',
                      5)]
password = "3328378"

# 微博按钮登录按钮点击
weibo = [(By.ID,'com.wanmeizhensuo.zhensuo:id/tv_login_weibo',5),(By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.view.ViewGroup/android.widget.TextView[2]',5)]

# 微信按钮登录按钮点击
weixin = [(By.ID,'com.wanmeizhensuo.zhensuo:id/tv_login_wechat',5),(By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.view.ViewGroup/android.widget.TextView[3]',5)]

#qq按钮点击
qq =[(By.ID,'com.wanmeizhensuo.zhensuo:id/tv_login_qq',5),(By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.view.ViewGroup/android.widget.TextView[4]',5)]

# 忘记密码按钮
Forget_password = [(By.ID,'com.wanmeizhensuo.zhensuo:id/account_authentication_tv_find_pass',5),(By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.RelativeLayout/android.widget.TextView[2]',5)]

