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/Luciya0606/Hogwarts_HomeWork/tree/homework_Calculator/HomeWork/wxOaWebHomeWork