selenium-01

上一篇 / 下一篇  2018-11-02 09:45:22 / 个人分类:selenium

# Knowledge point:
# 1)# contains的用法、切换iframe:
#     brower.switch_to.frame(brower.find_element_by_xpath("//iframe[contains(@src,'loginAction')]"))
# 2) python中如果使用系统默认的open方法打开的文件只能写入ascii吗,如果要写入中文需要用到codecs模块:
#     f = codecs.open("data.txt", "w", 'utf-8')
# 3)浏览器退出两种方式:
# brower.close() # 关闭当前的窗口
# brower.quit()  # 关闭所有窗口

TAG:

 

评分:0

我来说两句

日历

« 2024-04-19  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 5051
  • 日志数: 33
  • 建立时间: 2018-04-23
  • 更新时间: 2019-01-04

RSS订阅

Open Toolbar