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='...
Why when I use console.log in evaluate, it works:  casper.then(function() {   this.evaluate( function() {     console.log('hello');    }); });   But this doesn't work:  casper.then(function() {   this.evaluate( function() {     setTimeout...
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'm using CasperJS to automate a series of clicks, completed forms, parsing data, etc through a website.  Casper seems to be organized into a list of preset steps in the form of then statements (see their example here: http://casperjs.org/quickst...
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...
So what I want to do is create a casperJS function which allows us to repeat a step X times, by refreshing the page first, when this step function reaches the timeout.  For unreliable test due to a specific page bug/freeze at the moment and reduce th...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.