关闭

Watij 在WINDOWS 7 能使用吗?

标签: windowsmozillajava64bitapiexception
3755人阅读 评论(0) 收藏 举报
Are you using the old api or the new WebSpec api?  WebSpec works fine on Win 7 X 64. 


Two solutions. Best solution, switch to WebSpec API as the old version 
of Watij (3.2.1) is being replaced with WebSpec. 

Alternative solution, run in 32-bit mode. I have not tried it but two 
thoughts come to mind. The first is that Java has a switch (-D32 I 
think) to make 64-bit Java run in 32 bit mode. This might trick Watij 
into using the 64-bit DLL. The other option is to create a shortcut 
and set it to run in 32-bit mode (might be called Compatibility mode). 
If you run things from the shortcut it should be totally 32 bit and 
work fine. From the command line you can use the RUNAS.EXE to set the 
mode. 



Watij (the old API) works fine on Win 7 64bit, too. Just make sure to 
use a 32bit java version. (Otherwise a 64bit jni dll is missing) 


Hi, 
    I'm facing same problem. I installed Watij (webspec_1.0.1_beta) 
today on Windows 7. Wrote following code 

@Test 
        public void testRun() 
        { 
        Spec spec = new Spec().safari(); 
        spec.open("http://www.google.com"); 
        spec.find("input").with("name=='q'").set("value='Watij'"); 
        spec.find("input").with("type=='button'").with("value=='Google 
Search'").click(); 
        //check results 
        spec.find("a").with("href=='http://watij.com/'").shouldExist(); 
        } 

but it throws exception of 

java.lang.ExceptionInInitializerError 
Caused by: com.jniwrapper.LibraryNotFoundException: Cannot find 
JNIWrapper native library (jniwrap64.dll) 

I tried few things but no use. I'm not sure what's missing. 

Any direction is appreciated, 
Thanks, 
Anu 

On Sep 22, 11:35 pm, chribuhhh <chribu...@googlemail.com> wrote: 



   
Brian Knorr  
View profile  
 More options Nov 7 2010, 8:20 am
Yes for the WebSpec API on windows 64 you have to use 32 bit java sdk. 

The old Watij api works with IE on Windows.  Watij's new WebSpec api 
works with IE and Mozilla on Windows, Safari and Mozilla on Mac, and 
Mozilla on Linux.  For Windows 7 (64bit) make sure you are using a 
32bit Java SDK.  On Mac you just have to pass in -d32 in your VM args 
to force 32bit Java execution. 

On Nov 8, 1:13 pm, Anamika T 


I have used Watij with IE7 and IE8. No problems at all. It does not 
work on x64 systems however. 






0
0
查看评论

用watij爬取网页内容

前段时间,移动组找我帮忙抓个数据:http://jwc.hust.edu.cn:81/index.aspx,我看了看,觉得应该没问题吧,就答应了。后来发现,asp.net真不是一般的变态啊。。。 尝试了各种方法,都不行,只好请教师傅。师傅也很纠结,后来不知道从哪儿搜出了个方法,用watir(web...
  • aerchi
  • aerchi
  • 2012-03-31 12:02
  • 3129

Using Watij with Windows 7

Hi,  I've been using Watij very successfully for some time now, and have many tests running under Windows XP and Vista. I have recentl...
  • aerchi
  • aerchi
  • 2011-12-12 10:20
  • 2691

微软Windows Phone 7能疯起来吗?

<br />微软Windows Phone 7能疯起来吗?<br />文/陈永东<br /> <br />  微软近日即将发布新版操作系统Windows Phone 7,有人称也许这是微软绝地反击的大好机会,也有人称也许这根本就无法拯救微软,...
  • lennyf
  • lennyf
  • 2010-10-13 12:29
  • 2243

如何实现Watij对IE9或更高版本的支持

用过Watij的人都知道Watij对IE9或是更高的版本是不支持的,而我们现在的项目从2009年成立到现在就一直在使用这个工具。因此设计了大概有1555个基于Watij这种自动化测试框架的测试脚本。随着IE9和IE10的发布和IE8逐渐淡出市场,我们自动化测试组就面临着两个选择,一个是将所有的自动化...
  • Tao_QQ
  • Tao_QQ
  • 2012-12-27 09:28
  • 1207

在阿里云ECS里安装Windows 7 32位中文版

目的:安装Windows 7系统,替换原有的Windows 2008系统(原系统不能再用,请注意备份数据)    过程:      001. 查看当前ECS的系统版本信息,Windows 2008 SP2 标准中文版 ...
  • u011647007
  • u011647007
  • 2017-12-17 09:37
  • 343

windows 7下GPT所识别的GUID

windows 7下GPT所识别的GUID
  • ppdouble
  • ppdouble
  • 2016-10-07 01:19
  • 691

WATIJ

Watij (pronounced wattage) stands for Web Application Testing in Java. Watij is a pure Java API created to allow for the automation of web application...
  • sclxf
  • sclxf
  • 2008-11-17 21:25
  • 437

Windows Embedded Standard 7 剪裁随笔

作者:洋泡泡 转自:http://www.cnblogs.com/yangpaopao/archive/2010/06/11/1751292.html 本文内容:        1.添加注册表   &...
  • whw8007
  • whw8007
  • 2016-03-14 08:55
  • 1818

Hive安装与配置及其问题

当人们无法解释某些事情的时候,就用命运一带而过,而不去管那当中有多少苦痛。——《梦回大清》 1、概述1.1 什么是HiveHive是基于Hadoop的一个数据仓库工具,可以将结构化的数据文件映射为一张数据库表,并提供类SQL查询功能。1.2 为什么使用Hive 直接使用hadoop所面临的问...
  • zhoutaochun
  • zhoutaochun
  • 2018-01-01 09:20
  • 41

在Windows 7 上大家Android studio环境

开发安卓的IDE有两种,eclipse和android-studio,使用android-studio搭建安卓开发环境相对简单,只要一个安装包就搞定。下面就介绍android-studio的安装步骤。 ============================== 一、...
  • wh_19910525
  • wh_19910525
  • 2017-02-17 14:19
  • 376
    个人资料
    • 访问:6367843次
    • 积分:61293
    • 等级:
    • 排名:第53名
    • 原创:333篇
    • 转载:1720篇
    • 译文:19篇
    • 评论:178条
    博客专栏
    网上乐园
    最新评论