I have a webpage with an iframe.  I'd like to access the contents of the iframe using CasperJS.  In particular, I need to click buttons and fill a form.  How can I do that?  The main webpage is main.html:  <html><body> <a id='...
I'm trying to make it so that CasperJS will open up every link in an array of links. I have it so that after I open a link, it will display the title of that page. Yet when I run it, nothing is displayed.   I can use a for loop to display the lin...
I have one page in my casperjs test that has images , I dont what to wait until this page loaded to go to the next step. How can I do it ?  I have tryed this way  var casper = require("casper").create({    onStepTimeout: function() {...
I try to set select option attribute to selected. But I try to avoid using nth-child in CasperJS because there are bugs in PhantomJS's nth-child. So I try to use this as the subtitution of jQuery(css_path).  function setSelectedCountry(i){     wi...
I have simple page with javascript which validates email written in input:  email.html:  <!DOCTYPE html> <html>     <head>         <title>Email validation</title>         <script src="email.js"></script&...
I'm new to casperjs and playing around with it, but I can't get its evaluate() functionality to work.  This is my example  var casper = require('casper').create();  casper.echo('started...');  casper.start('http://www.goog...
Trying to automate some testing for some analytics tracking code, and I'm running into issues when I try passing links into the each() method.   I copied a lot of this from stackoverflow - how to follow all links in casperjs, but I don't need...
The CasperJS documentation for captureSelector() does not say anything about how to set the size of the screenshot. The default (at least on my system using webkit, Windows 8) seems to be to take a tiny screenshot of the top left portion of the page....
I'm trying to write a step that clicks a more button until that button changes to display: none;.  CLARIFICATION: The page I'm working with is a Google+ business page. There is a more button that loads about 10 reviews at a time until they ar...
I am learning CasperJS and how to write unit tests but my test fails. I tried the example code from the website and it fails as well! I am confused about how to use the testing framework in CasperJS.  This is my code:  var casper = require('caspe...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.