slimerjs

slimerjs Can not resolve required module, works with phantomjs

江枫思渺然 提交于 2020-02-19 05:56:28
问题 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

Running casperjs tests with slimerjs

痴心易碎 提交于 2020-01-24 12:42:48
问题 I wrote a few tests with casperjs. They run just fine with phantomjs. However, when I tried to use slimerjs with the following command: casperjs --verbose --engine=slimerjs test create-project-suite.js A small window appers with the SlimerJs logo and version number but the console seems to hang with the following line: Test file: create-project-suite.js Is there anything else I need to do? Here are the version numbers: Mozilla Firefox 28.0 CasperJS version 1.1.0-beta3 Innophi SlimerJS 0.9.1 3

Running casperjs tests with slimerjs

感情迁移 提交于 2020-01-24 12:42:28
问题 I wrote a few tests with casperjs. They run just fine with phantomjs. However, when I tried to use slimerjs with the following command: casperjs --verbose --engine=slimerjs test create-project-suite.js A small window appers with the SlimerJs logo and version number but the console seems to hang with the following line: Test file: create-project-suite.js Is there anything else I need to do? Here are the version numbers: Mozilla Firefox 28.0 CasperJS version 1.1.0-beta3 Innophi SlimerJS 0.9.1 3

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

我的梦境 提交于 2019-12-22 06:44:41
问题 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

Set screen resolution in CapserJS/SlimerJS

♀尐吖头ヾ 提交于 2019-12-19 05:07:38
问题 Im using CasperJS 0.10.1 SlimerJS 1.1.3 Firefox 45 on CentOS 7.2 Im trying to set the window.screen properties as seen by the code below by the screenshot of the website still says 640x480 var casper = require('casper').create({ verbose: true, logLevel: 'debug' }); casper.on('page.initialized', function (page) { page.evaluate(function () { (function() { window.screen = { width: 1600, height: 900 }; }) }); }); casper .start() .thenOpen('http://www.whatismyscreenresolution.com/') .wait(5000,

Unknown option when using CasperJS with “--ssl-protocol=tlsv1 --engine=slimerjs”

北慕城南 提交于 2019-12-13 19:30:37
问题 Every since the sslv3 POODLE bug came out I am unable to use casperjs with the "--engine=slimerjs" option. Before POODLE I was able to run my casperjs script like this: casperjs --engine=slimerjs script.js But after POODLE I needed to also send the "--ssl-protocol=tlsv1" to casperjs. This works without using the slimer option like this: casperjs --ssl-protocol=tlsv1 script.js Now if I want to use the slimerjs engine and send the ssl-protocol like this: casperjs --ssl-protocol=tlsv1 --engine

slimerjs Can not resolve required module encoding

坚强是说给别人听的谎言 提交于 2019-12-12 03:06:47
问题 I have seen slimerjs Can not resolve required module, works with phantomjs, but that one explains absolutely nothing, so I'll dare ask the question again. I have done this: $ npm install -g encoding encoding@0.1.12 /home/USERNAME/.nvm/versions/node/v4.0.0/lib/node_modules/encoding └── iconv-lite@0.4.13 So, apparently, it should be there? Now, I'm trying this test script, as stated in https://www.npmjs.com/package/encoding - let's call it test_modload.js : var encoding = require('encoding'); .

CasperJS- Register on a site and validate the mail sent on Gmail -for both slimer and phantom-

≡放荡痞女 提交于 2019-12-11 01:56:25
问题 Edit : this is the windows behaviour, with linux it just fails. First, if you succeeded navigate on gmail with casper (without random waiting time -from 20sec to 5min-), please tell me. I want to register on our site, then validate my registration automatically with Gmail (an entire register step). Did someone do that before? I have no problem to register, and I can login on my mailbox (Gmail) but after i have some troubles to navigate and validate my registration in Gmail, and i observe

CasperJS : dropdown list; select an option, code works in browser&slimer but not with phantom

坚强是说给别人听的谎言 提交于 2019-12-10 15:59:24
问题 Here my problem : I'm in a specific case where I try to set the option of a select dropdown list. I usually use this.mouse.up() + this.mouse.down() but I can't in this case because this behavior doesn't work on the website with webkit (you can compare the two with google chrome and Firefox). Here the url : I want to set the field 'ANNEE' to a year, 2008 in my example My code : (my function changes the HTML and launches the change() event) //custom function casper.fillSelect = function

Unable to download .zip file from url with casperjs

无人久伴 提交于 2019-12-08 06:41:07
问题 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