基于appium自动化测试案例3--导入案例2中方法实现自动登陆后的操作

from find_element.capability import driver,NoSuchElementException

try:
    driver.find_element_by_id('net.csdnplus:id/llnightmode')
except NoSuchElementException:
    print('未走登陆的进入博客')
    driver.find_element_by_id('net.csdnplus:id/slidBack').click()
    driver.find_element_by_id('net.csdnplus:id/ll_info').click()
else:
    print('已走登陆的进入论坛')
    driver.find_element_by_id('net.csdnplus:id/slidBack').click()
    driver.find_element_by_id('net.csdnplus:id/ll_bbs').click()
阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页