学习目的: 掌握WebDriver的高级应用 正式步骤: # -*- coding:utf-8 -*- from selenium import webdriver from selenium.webdriver import ActionChains from selenium.webdriver.support.ui import Select from selenium.webdriver.common.keys import Keys from selenium.common.excep…
经常项目上有导入excel的需求,其实导入一个固定格式的excel数据非常容易,但是,发现一个问题就是,导入excel后,用户在打开excel时,必须要打开2次才能打开excel,这让人很不爽:开始查找原因:excel的进程关闭不了,资源不能释放,于是就想尽办法释放com对象excel实例: public Excel.Application app; //Excel对象 public Excel.Workbooks wbs; //工作簿集 public Excel.Workb…