web使用

web

  send_keys("Airtest Project", Keys.ENTER)//输入后执行某个键盘事件
  不同标签页切换
    Airtest-Selenium中用driver.switch_to_previous_tab()和driver.switch_to_new_tab()两个接口来处理不同标签页之间的逻辑。
    driver.switch_to_new_tab()接在当新的标签页生成的时候,会跳转到最新的标签页。
    driver.switch_to_latest_window()
    driver.switch_to_last_window()

posted on 2019-02-02 17:28  悬剑  阅读(414)  评论(0编辑  收藏  举报

导航