WebDriver
purpose23
产品经理
展开
-
使用Webdriver+TestNG,设置FireFox安装路径。
最近学习使用TestNG写测试脚本,仿照的是乙醇的脚本,由于火狐没有装到默认路径,运行时总是报找不到路径的错误。QQ群里问了半天也没人回答,只好自己倒腾,最终调试通过的代码如下。 package com.testgoogle; import org.testng.Assert; import org.testng.annotations.BeforeTest; import org.tes原创 2013-11-06 14:18:42 · 949 阅读 · 0 评论 -
【Webdriver】Firefox启动后出现Unable to connect to host 127.0.0.1 on port 7055。
问题描述: 执行WebDriver脚本后浏览器启动,但是没有跳转到指定的url。并显示 “远程 XUL 此页面使用了不支持的技术,Firefox 默认不再启用该技术。” 解决方法, 更新selenium-java-xxx.jar文件,或者FF版本过高,换个旧版本。 eclipse错误摘要如下: org.openqa.selenium.firefox.NotConnectedE原创 2014-02-27 15:48:17 · 8768 阅读 · 0 评论 -
在Eclipse中使用Maven配置WebDriver+Testng(二)
建立一个简单的测试项目 package net.Maventest; import org.openqa.selenium.*; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.support.ui.ExpectedCondition; import org.openqa.selenium原创 2014-03-04 17:28:03 · 856 阅读 · 0 评论