Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

160
Views
CasperJS moving jQuery UI draggable item

I am trying to crawl some data from the web page and I need to move draggable item to droppable place. This is what I've tried so far:

var casper = require('casper').create();
var mouse = require('mouse').create(casper);

casper.start("https://uygulama.gtb.gov.tr/BeyannameSorgulama/",function() {
    this.sendKeys('input[id="txtBeyannameNo"]', '17341200EX119337');
    this.mouse.down('li.ui-draggable');
    this.mouse.move('#ajax-fc-circle');
    this.mouse.up('#ajax-fc-circle');
});

casper.then(function(){
    casper.capture('screenshots/test.png');
    this.click('input[id="btnSorgula"]');
});

casper.waitForSelector('span[id="LabelDurum"]', function (){
    casper.capture('screenshots/test2.png');
    console.log("OK!");
});

casper.run();

But I cannot manage to finish the process successfully.

What am I doing wrong?

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!