Tag: dalekjs

无法在公司代理之后运行dalekjstesting脚本

我试图运行代理后面的Dalekjstesting脚本,但我得到以下错误信息 D:\ dalek> dalek。\ test \ mytest.js运行testing运行浏览器:PhantomJS操作系统:windows 7 32bit浏览器版本:1.9.7 运行testing – “页面标题正确” OPEN http://www.google.co.in x TITLE 0预期:Google 0 FOUND:需要代理授权0 MESSAGE:它有标题x TEST – “页面标题正确”FAILED 0/1断言通过。 经过时间:1.09秒

使用Dalekjstesting工具,如何在Option标签中没有“value”属性时selectDropdown(Select element)中的Option?

让我们考虑下面的"Select"例子与"value"属性, <select onchange="fruitSelected();" id=""> <option value=""></option> <option value="apple">apple</option> <option value="mango">mango</option> <option value="banana">banana</option> </select> 使用dalekjs我可以使用下面的代码来select选项, .click('#moduleType option[value="apple"]') 但是,当上面的例子没有如下所示的"value"属性时, <select onchange="fruitSelected();" id="fruitID"> <option></option> <option>apple</option> <option>mango</option> <option>banana</option> </select>; 如何从下拉菜单中select选项? 我尝试使用.execute如下, .execute(function () { document.getElementById("fruitID").selectedIndex = "1"; }) 我可以select选项作为苹果,但onchangefunction没有被调用。 如何从下拉菜单中select选项? 所以onchangefunction也可以叫。 注:select标签不能修改,因为我只是testing。 提前致谢..

nodejs插件为Jenkinsconfiguration问题上的dalek问题

我们正试图在Jenkins的Windows机器上运行dalek。 我们在Windows机器上安装了nodejs二进制文件。 我们在Jenkins上安装了nodejs插件。 当我们运行我们的工作时,我们得到这个错误: [Test] $ C:\Windows\TEMP\hudson1848754731046994976.js FATAL: command execution failed java.io.IOException: Cannot run program "C:\Windows\TEMP\hudson1848754731046994976.js" (in directory "C:\jenkins\workspace\Test"): CreateProcess error=193, %1 is not a valid Win32 application at java.lang.ProcessBuilder.start(Unknown Source) at hudson.Proc$LocalProc.<init>(Proc.java:244) at hudson.Proc$LocalProc.<init>(Proc.java:216) at hudson.Launcher$LocalLauncher.launch(Launcher.java:763) at hudson.Launcher$ProcStarter.start(Launcher.java:353) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:988) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:955) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at […]