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...
How can I login with CasperJS by submitting a form. I searched google and haven't found any good examples about it....
casper.start(URL, function() {      casper.page.injectJs('C:/Users/Mike/Documents/n1k0-casperjs-bc0da16/jquery-1.10.2.min.js');     var names = $('span.author-name');     this.echo(names);     this.exit(); }   ReferenceError: Can'...
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 trying to create a testing case for a web site which includes a form with 3 chained selects. The first select is populated by default when the web page is loaded. If any option from the first select is selected, then  the second select is pop...
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...
My html code is:  <div class="setting-control"> <select class="on-off" id="custom-cache-pref">   <option value="">Default</option>   <option value="byc">Bypass cache</option>...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.