示例#1
0
 def createAudioGra(self):
     self.wait_element(*self.createTopicButton_loc).click()
     self.wait_element(*self.audioAndVideoGra_loc).click()
     # 课程主题
     self.wait_element(*self.audioAndVideoGraTopicname_loc).send_keys("音频图文话题"+str(time.time()))
     # 上传课程封面
     topicPic = getDataFile("测试图片-sportguy5.jpg")
     self.wait_element(*self.topicPic_loc).send_keys(topicPic)
     # 课程类型
     self.wait_element(*self.audioGra_loc).click()
     # 收费类型
     self.wait_element(*self.channelbutton_loc).click()
     # 选择第一个系列课(这里不是select标签)
     self.wait_element(*self.channelSelectbutton_loc).click()
     self.wait_element(*self.channell_loc).click()
     # 选择系列课内单买
     self.wait_element(*self.singleSoleInChannel_loc).click()
     self.wait_element(*self.singleSolePrice_loc).send_keys('999')
     # 直播概要-图片
     liveIntroPicture = getDataFile("测试图片-sportguy5.jpg")
     self.wait_element(*self.liveIntroPictureButton_loc).send_keys(liveIntroPicture)
     # 直播概要-添加文字
     self.wait_element(*self.liveIntroTextButton_loc).click()
     time.sleep(2)
     self.wait_element(*self.liveIntroText_loc).send_keys('这个是yinp@#$%^&*lfjafjajs ;ljjdf ja;ls dljsf图文话题啊!')
     # 保存
     self.wait_element(*self.saveButton_loc).click()
     # 上传视频  是input表单直接直接使用send_keys()
     audio = getDataFile("测试音频-sportguy.mp3")
     self.wait_element(*self.sendVideoButton_loc).send_keys(audio)
     time.sleep(1)
     # 点击返回话题列表页面
     self.wait_element(*self.backTopicListButton_loc).click()
示例#2
0
 def createAudioGraTopicCamp(self):
     self.wait_element(*self.createTopicButton_loc).click()
     self.wait_element(*self.audioAndVideoGra_loc).click()
     # 课程主题
     self.wait_element(*self.audioAndVideoGraTopicname_loc).send_keys("音频图文¥$%^#@图文话题啊"+str(time.time()))
     # 上传课程封面
     topicPic = getDataFile("测试图片-sportguy2.jpg")
     self.wait_element(*self.topicPic_loc).send_keys(topicPic)
     # 课程类型
     self.wait_element(*self.audioGra_loc).click()
     # 收费类型
     self.wait_element(*self.campleButton_loc).click()
     # 选择第一个系列课(这里不是select标签)
     self.wait_element(*self.campleSelectButton_loc).click()
     self.wait_element(*self.campe_loc).click()
     # 直播概要-图片
     liveIntroPicture = getDataFile("测试图片-sportguy1.jpg")
     self.wait_element(*self.liveIntroPictureButton_loc).send_keys(liveIntroPicture)
     time.sleep(3)
     # 直播概要-添加文字
     self.wait_element(*self.liveIntroTextButton_loc).click()
     self.wait_element(*self.liveIntroText_loc).send_keys('这个是#%*^%频图文话题啊!')
     # 保存
     self.wait_element(*self.saveButton_loc).click()
     # 上传视频  是input表单直接直接使用send_keys()
     video = getDataFile("测试音频-sportguy.mp3")
     self.wait_element(*self.sendVideoButton_loc).send_keys(video)
     time.sleep(1)
     # 点击返回话题列表页面
     self.wait_element(*self.backTopicListButton_loc).click()
示例#3
0
 def createVideoGraTopic(self):
     self.wait_element(*self.createTopicButton_loc).click()
     self.wait_element(*self.audioAndVideoGra_loc).click()
     # 课程主题
     self.wait_element(*self.audioAndVideoGraTopicname_loc).send_keys("这个是视频图文话题啊"+str(time.time()))
     # 上传课程封面
     topicPic = getDataFile("测试图片-sportguy1.jpg")
     self.wait_element(*self.topicPic_loc).send_keys(topicPic)
     # 课程类型
     self.wait_element(*self.videoGra_loc).click()
     # 收费类型
     self.wait_element(*self.channelbutton_loc).click()
     # 选择第一个系列课(这里不是select标签)
     self.wait_element(*self.channelSelectbutton_loc).click()
     self.wait_element(*self.channell_loc).click()
     # 选择系列课内单买
     self.wait_element(*self.singleSoleInChannel_loc).click()
     self.wait_element(*self.singleSolePrice_loc).send_keys('1')
     # 直播概要-图片
     liveIntroPicture = getDataFile("测试图片-sportguy2.jpg")
     self.wait_element(*self.liveIntroPictureButton_loc).send_keys(liveIntroPicture)
     # 直播概要-添加文字
     self.wait_element(*self.liveIntroTextButton_loc).click()
     self.wait_element(*self.liveIntroText_loc).send_keys('这个是视频图文话题啊!')
     # 保存
     self.wait_element(*self.saveButton_loc).click()
     # 上传视频  是input表单直接直接使用send_keys()
     video = getDataFile("测试视频-sportguy.mp4")
     self.wait_element(*self.sendVideoButton_loc).send_keys(video)
     time.sleep(1)
     # 点击返回话题列表页面
     self.wait_element(*self.backTopicListButton_loc).click()
示例#4
0
 def createVideoTopicChannell(self):
     self.wait_element(*self.createTopicButton_loc).click()
     self.wait_element(*self.audioAndVideoTopic_loc).click()
     # 课程主题
     self.wait_element(*self.videoTopicName_loc).send_keys('视频互动话题-系列课内话题#¥…')
     # 上传课程封面
     topicPic = getDataFile("测试图片-sportguy1.jpg")
     self.wait_element(*self.videoTopic_loc).send_keys(topicPic)
     # 选择直播类型
     self.wait_element(*self.video_loc).click()