slimerjs

Unable to download .zip file from url with casperjs

六月ゝ 毕业季﹏ 提交于 2019-12-06 15:48:53
I've been trying to download a .zip file from a website using casperjs but it won't let me. 1) If I open the url with casper.thenOpen() it shows me the typical download dialog "Do you want to Open or save this file?", the thing is that I haven't been able to find a way to choose "Download it" (which is what I need) instead of "open it" with casperjs. 2) Right now I'm using casper.download() but it just downloads a 0 byte file, I think it's a better option because I can specify an address where the file is gonna be downloaded to and it doesn't ask me to download the file, it just download it

What is the correct way to launch slimerjs in casperjs (with an absolute path)?

戏子无情 提交于 2019-12-05 10:19:19
Well, i can launch slimerjs by specifying the path of the slimer.bat file : C:\bin\slimerjs\slimerjs.bat and then execute my file. But if i modify casperjs file (in bin\ ) and modify the default exec for slimer : 'env_varname': 'SLIMERJS_EXECUTABLE', 'default_exec' : 'C:\bin\slimerjs\slimerjs.bat' when i execute the casper command : casperjs --engine=slimerjs test.js It doesn't work, the path to slimerjs.bat seems to be ignored. I tried this too : https://github.com/laurentj/slimerjs/blob/master/BUILD.md But the slimerjs.exe alone isn't sufficient, i need to have application.ini and omni.ja in

How to install wraith on windows 7

廉价感情. 提交于 2019-12-05 02:07:21
问题 Does anyone knows (maybe all relevant steps) how I can run/install Wraith on Windows 7? The documentation (http://bbc-news.github.io/wraith/index.html#Installation) is unfortunately very vague. Thanks in advance Martin 回答1: Required downloads: https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-windows.zip http://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-2.0.0-p481.exe?direct http://cdn.rubyinstaller.org/archives/devkits/DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe http

slimerjs Can not resolve required module, works with phantomjs

萝らか妹 提交于 2019-12-03 08:06:40
I am trying to create a testing script so that the testers can capture some tests using standalone slimerjs 0.9.3. However when I try to require a local package that I installed(minimist in this case) via npm I get an error. File structure: clibrowsers/ /osx/slimer/slimerjs /scripts /batchprinter.js /node_modules/minimist/ ... When I run "clibrowsers/osx/slimer/slimerjs clibrowsers/scripts/batchprinter.js" I get the error: Script Error: Module: Can not resolve "minimist" module required by main located at file:///Users/USER/Documents/dev/clibrowsers/scripts/batchprinter.js Stack: -> file://

Handle download dialog box in SlimerJS

我们两清 提交于 2019-12-01 21:51:48
问题 I have written a script that clicks on a link which can download a mp3 file. The problem I am facing is when the script simulates the click on that link, a download dialog box pops up like this: Download Dialog Box Now, I want to save this file to some path of my choice and automate this whole process. I am clueless on how to handle this dialog box. 回答1: Here's a script adapted from this blog post to download a file. In SlimerJS it is possible to use response.body inside the

How can I maximize the browser window while running test scripts in casperjs using slimerjs

我怕爱的太早我们不能终老 提交于 2019-11-30 03:09:08
问题 I'm unable to view the full window while running test scripts in casperjs using slimerjs engine . could any one please help me to increase the mozila browser window size 回答1: Sure, use the phantom/slimer viewportSize option in casper : casper.options.viewportSize = {width: 1600, height: 950}; Or the casper function : casper.start(url) .viewport(1600,1000) .{...} With the function you can easily change the window size during steps of a scenario. And the scrollTo(), srollToBottom() functions

How to properly hover the mouse over an element in PhantomJS/CasperJS

瘦欲@ 提交于 2019-11-29 18:10:12
In my opinion, a problem of getting dynamic content is really very ambiguous. I tried to find some useful information, used many different code examples, certainly modifying them to my purposes, but unfortunately, without any results( I need to get some contents from here . Try to explain detailed what are the problems i faced to (need to notice, that all i do is exclusively for my own use!). Main web site page has main navigation ( Main nav pic ) list with each list class "menu__category-trigger". Every "menu__category-trigger" has each own dropdown menu container. All these dropdown menu

How to properly hover the mouse over an element in PhantomJS/CasperJS

∥☆過路亽.° 提交于 2019-11-28 13:31:12
问题 In my opinion, a problem of getting dynamic content is really very ambiguous. I tried to find some useful information, used many different code examples, certainly modifying them to my purposes, but unfortunately, without any results( I need to get some contents from here. Try to explain detailed what are the problems i faced to (need to notice, that all i do is exclusively for my own use!). Main web site page has main navigation (Main nav pic) list with each list class "menu__category