去tr里面的内容text=driver.find_elements_by_xpath("//table[@id=‘trackTable‘]")foriintext:printi.text#下拉框#Select(driver.find_element_by_id("set_start_hour_scan")).select_by_index(3)#Select(driver.find_element_by_id("set_start_hour_scan")).select_by_value("..
分类:
其他好文 时间:
2015-10-28 19:38:12
阅读次数:
165
. --> org.hibernate.dialect.H2Dialect org.h2.Driver sa jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1 create-drop ...
分类:
Web程序 时间:
2015-10-27 17:20:06
阅读次数:
163
jdbc:mysql://localhost:3306/customers com.mysql.jdbc.Driver root 123 3 10 2...
分类:
其他好文 时间:
2015-10-27 17:09:26
阅读次数:
138
场景:在Spring+Mybatis搭建的项目中要在配置两个数据库,如何实现?其实也不是多难的事情,只要把配置配好了,一切问题就迎刃而解了,废话不多说,且看如下配置……配置一:jdbc.properties配置两个数据库:myuser和myitemmyuser.jdbc.driver=com.mysql.jdbc.Driver
myuser.jd..
分类:
数据库 时间:
2015-10-27 07:09:03
阅读次数:
825
一位网友windows xp sp3下安装virtualbox 4.1.20版本,安装好了重启过后,可以打开virtualbox,但是等到创建好虚拟电脑后按启动按钮,就出现了错误提示:“Cannot access the kernel driver”,启动不了 virtualbox。根据错误的提示说...
分类:
数据库 时间:
2015-10-26 22:30:46
阅读次数:
192
package DBHelper; import java.sql.*; public class Demo { public static void main(String[] args) { String driver = "com.mysql.jdbc.Driver"; ...
分类:
数据库 时间:
2015-10-25 19:19:09
阅读次数:
153
1、db.propertiesjdbc.driver=com.mysql.jdbc.Driverjdbc.url=jdbc:mysql://localhost:3306/studentjdbc.username=rootjdbc.password=12342、SqlMapConfig.xml配置文件...
分类:
数据库 时间:
2015-10-25 14:55:03
阅读次数:
293
首先hibernate.cfg.xml构造,在该文件src文件夹 com.mysql.jdbc.Driver jdbc:mysql://192.168.1.81:3306/test root 123456 1 org.hibernate.dialect.MySQL5D...
分类:
Web程序 时间:
2015-10-24 21:52:06
阅读次数:
231
在输入框或选择框输入数据后,数据不会直接生效,此时需点击页面其它地方触发数据生效。有一个小方法就是键盘按下Tab键,我们可在自动化代码中模拟实现,代码如下:1 Actions action=new Actions(driver);3 action.sendKeys(Keys.TAB).perform...
分类:
其他好文 时间:
2015-10-24 11:21:05
阅读次数:
165
1)方法driver1的调用:1 @BeforeClass2 public void setUp() throws Exception {3 // 启动脚本4 startScript(getClassName()); 5 // 启动浏览器6 driver(Config...
分类:
其他好文 时间:
2015-10-24 11:20:56
阅读次数:
145