【拉勾6期】企业微信web端自动化测试实战

请老师查收:GitHub - jww1996/python_wechatPO_homework

请老师查收:
https://github.com/yuwenli/hogwarts_yuwenli/tree/master/hogwarts_practices/seleniumPOPractices

西西老师请查收指导一下:
https://github.com/jinman716/jinman/tree/master/web_wx

https://github.com/ZhangYi8326/Selenium_Zoey/tree/master/seleniumPO

https://github.com/13259727865/test001/tree/main/page3

老师好,作业请查收
https://github.com/Xylon4/-/tree/master/homework/210226

  • 谢谢 xixi 老师,采取老师的建议,已修改 :two_hearts:
    https://github.com/guoccf927/HogwartsLG6Gcc/tree/master/homework_05/live
  • 看到新的idea 一定要试一下
  • def check_user_info_last(self, check_info_list, info_list=[]):
      """
      第六阶段12节 数据驱动 所感
      :return: 默认参数 False ,找到 check_info_list 即更新参数为 True
      """
      # 设置默认参数
      exist_flag = False
    
      # 获取当前页用户信息
      ele_list = self.finds(By.CSS_SELECTOR, ".member_colRight_memberTable_td")
      for ele in ele_list:
          info_list.append(ele.get_attribute("title"))
      print(f"全部用户信息为:{info_list}")
    
      # 存在,则更新参数为 True
      if check_info_list[0] in info_list and check_info_list[1] in info_list:
          exist_flag = True
          return exist_flag
    
      try:
          """
          1、点击下一页
          2、打印当前页数
          3、循环
          """
          self.click(By.CSS_SELECTOR, ".js_next_page")
          page_str = self.find(By.CSS_SELECTOR, ".ww_pageNav_info_text").text
          print(f"当前页数:{page_str}")
          return self.check_user_info_last(check_info_list, info_list)
      except NoSuchElementException as e:
          print("except:", e)
    

老师,作业请查收:https://github.com/jichenxu/page_object.git

作业:python_selenium_po:企业微信web端自动化测试实战(二)
https://github.com/GaoPangPang0318/MyStudy.git

https://github.com/Abigail2020/python/tree/master/webAutomation/seleniumPO

老师好,我把seleniumPO思想用在了公司项目里,我的疑问有
1.如何把显示等待运用到basepage里,这个是我根据dong封装的find方法,用于定位
def find(self, by, locator=None):
element = self.driver.find_elements(*by) if isinstance(by, tuple) else self.driver.find_element(by, locator)

2.这个项目是一个聊天室,分为agent和client端,要断言的页面就是进入chatting-room,对chatting-room里的checklist/take photo按钮/submit/cancel等按钮功能和页面内容做断言;
疑问是:一个页面有很多断言,是不是把断言封装成一个 common assert类比较合适

3.老师帮忙看下,还有什么需要改进的,辛苦老师!!!

https://github.com/zhoudong0113/huozi_study.git
study04,测试执行里面写了两种不知道错那了

https://github.com/Rinalin/seleniumPO

老师你好:
企业微信web端添加联系PO封装代码如下,请查收:
https://github.com/hanjj01/HomeWork-Selenium-PO

https://github.com/Th0mas1ee/Hogwarts.git

老师好,作业已提交:https://github.com/newcoder-li/seleniumhomework.git

作业练习请查收:https://github.com/Luciya0606/Hogwarts_HomeWork/tree/homework_Calculator/HomeWork/wxOaWebHomeWork

PO作业请查收:
https://github.com/qkwlqkwl/homework2/tree/master/web/seleniumPO

请老师查收作业-live_homework文件夹:https://github.com/ZhouGuoMing/stagefive_1

迟到的作业 添加联系人 :homework/webWork at master · zw632948101/homework · GitHub