from selenium.webdriver.common.by import By
#弹窗关闭按钮
double_eye_iv_close_pop = [(By.ID,'com.wanmeizhensuo.zhensuo:id/iv_close_pop',5),(By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.ImageView',5)]

# 模拟双眼皮拍照按钮点击
double_eye_take_photo_record_button = [(By.ID,'com.wanmeizhensuo.zhensuo:id/take_photo_record_button',5),(By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.RelativeLayout[1]/android.widget.RelativeLayout[2]/android.widget.ImageView',5)]

# 双眼皮相册按钮点击
take_photo_album_img = [(By.ID,'com.wanmeizhensuo.zhensuo:id/take_photo_album_img',5),(By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.RelativeLayout[1]/android.widget.RelativeLayout[2]/android.widget.LinearLayout/android.widget.RelativeLayout/android.widget.ImageView[2]',5)]


# 点击扫脸引导弹窗
aiScan = [(By.ID, 'com.wanmeizhensuo.zhensuo:id/face_select_iv_guide_close', 5),
          (By.XPATH, '/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.RelativeLayout[2]/android.widget.ImageView', 5)]



# 点击相册按钮
PictureButton = [(By.ID, 'com.wanmeizhensuo.zhensuo:id/take_photo_album_img', 5),(By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.RelativeLayout[1]/android.widget.RelativeLayout[2]/android.widget.LinearLayout/android.widget.LinearLayout/android.widget.ImageView', 5)]

# 点击某一张图片
picture = [(By.ID,'com.wanmeizhensuo.zhensuo:id/img_album_photo',5),(By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.GridView/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.ImageView',5)]


# 跳过按钮
jump = [(By.ID, 'com.wanmeizhensuo.zhensuo:id/jump_over_tv',15), (By.XPATH, '/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.RelativeLayout/android.widget.TextView',15)]



# 上次报告按钮
Last_report = [(By.ID, 'com.wanmeizhensuo.zhensuo:id/face_scan_tv_last_report', 5),(By.XPATH, '/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.RelativeLayout[1]/android.widget.RelativeLayout[2]/android.widget.TextView', 5)]


# 点击拍照按钮
take_photo_record_button = [(By.ID, 'com.wanmeizhensuo.zhensuo:id/take_photo_record_button', 5),(By.XPATH, '/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.RelativeLayout[1]/android.widget.RelativeLayout[2]/android.widget.ImageView', 5)]



# 面孔起源tab
face_ai_gene = [(By.ID, 'com.wanmeizhensuo.zhensuo:id/face_ai_gene', 5),(By.XPATH, '/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.RelativeLayout[1]/android.widget.RelativeLayout[3]/android.view.ViewGroup/android.widget.RelativeLayout[1]/android.widget.TextView', 5)]

#测肤tab
skin_tab = [(By.ID, 'com.wanmeizhensuo.zhensuo:id/face_ai_skin', 5),(By.XPATH, '/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.RelativeLayout[1]/android.widget.RelativeLayout[3]/android.view.ViewGroup/android.widget.RelativeLayout[3]/android.widget.TextView', 5)]

# 男性按钮
face_gene_male = [(By.ID, 'com.wanmeizhensuo.zhensuo:id/face_gene_male', 5), (By.XPATH, '/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.view.ViewGroup/android.widget.LinearLayout/android.widget.ImageView[2]', 5)]


#女性按钮
face_gene_female = [(By.ID, 'com.wanmeizhensuo.zhensuo:id/face_gene_female', 5), (By.XPATH, '/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.view.ViewGroup/android.widget.LinearLayout/android.widget.ImageView[1]', 5)]


# 模拟整形tab按钮点击
zhengxing_tab = [(By.ID,'com.wanmeizhensuo.zhensuo:id/face_ai_plastic_new',5),
                 (By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.RelativeLayout[1]/android.widget.RelativeLayout[3]/android.view.ViewGroup/android.widget.RelativeLayout[5]/android.widget.TextView',5),
                 (By.XPATH,'//*[@text="模拟整形"]',5)]

# 模拟整形相册按钮点击
zhengxing_picture_button = [(By.ID,'com.wanmeizhensuo.zhensuo:id/take_photo_album_img',5),
                            (By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.RelativeLayout[1]/android.widget.RelativeLayout[2]/android.widget.LinearLayout/android.widget.RelativeLayout/android.widget.ImageView[2]',5)]


# 测颜值tab点击
scan_tab = [(By.ID,'com.wanmeizhensuo.zhensuo:id/face_ai_analysis_tv',5),
            (By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.RelativeLayout[1]/android.widget.RelativeLayout[3]/android.view.ViewGroup/android.widget.RelativeLayout[3]/android.widget.TextView',5)]
# 测颜值tab点击
face_ai_plastic = [(By.ID,'com.wanmeizhensuo.zhensuo:id/face_ai_plastic',5),
            (By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.RelativeLayout[1]/android.widget.RelativeLayout[3]/android.view.ViewGroup/android.widget.RelativeLayout[5]/android.widget.TextView',5)]

#模拟发型tab点击
hair_tab = [(By.ID,'com.wanmeizhensuo.zhensuo:id/face_ai_hair',5)]

# 3d变脸tab点击
three_D_bianlian = [(By.ID,'com.wanmeizhensuo.zhensuo:id/face_ai_plastic_3d',5),(By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.RelativeLayout[1]/android.widget.RelativeLayout[3]/android.view.ViewGroup/android.widget.RelativeLayout[5]/android.widget.TextView',5)]

# 模拟发型弹窗关闭
hair_close = [(By.ID,'com.wanmeizhensuo.zhensuo:id/iv_close_pop',5),(By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.ImageView',5)]

hair_open_picture = [(By.ID,'com.wanmeizhensuo.zhensuo:id/btn_open_album',5),(By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.LinearLayout/android.widget.TextView[3]',5)]

photo_record_button_hair = [(By.ID,'com.wanmeizhensuo.zhensuo:id/take_photo_record_button',5),(By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.RelativeLayout[1]/android.widget.RelativeLayout[2]/android.widget.ImageView',5)]












