Ben CasperJS ile oynamak veama CasperJS
https://registrierung.web.de/#.homepage.loginbox_1.1.registrierung Yani giriş alanına sahip bazı Serbest E-posta takma adı yakalamaya çalışıyorum bütün sayfayı yeniden: "E -Mail-Wunschname: "bir isim yapıştırmak istediğimde," Prüfen "düğmesine tıklayın ve daha sonra önerilen hesapları kazıyın. Tam bir sayfanın teslim ve sadece nesil bu sadece her iki yönden ile
casper.wait(6000, function() {
this.evaluate(function(){
document.querySelector('.wishname.feedback-panel-trigger.multiReplaceCharsInWishnamelField').value = "Test";
document.querySelector('#checkAvailabilityBtn').click();
});
});
casper.then(function() {
this.capture('webde.png');
console.log('clicked ok, new location is ' + this.getCurrentUrl());
});
:
var casper = require('casper').create({
pageSettings: {
loadImages: false,
loadPlugins: true,
userAgent:('Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Firefox/45.0')
}
});
var mouse = require("mouse").create(casper);
casper.start('https://registrierung.web.de/#.homepage.loginbox_1.1.registrierung').viewport(1200,1000);
casper.then(
function() {
this.sendKeys('.wishname.feedback-panel-trigger.multiReplaceCharsInWishnamelField',"Test");
this.sendKeys('.wishname.feedback-panel-trigger.multiReplaceCharsInWishnamelField',casper.page.event.key.Enter);
this.wait(5000);
}
);
casper.then(function() {
this.wait(5000);
this.capture('webde.png');
console.log('clicked ok, new location is ' + this.getCurrentUrl());
});
casper.run();
da
Yorgunum ile düğmesini tıklayın:
Şimdiye kadar bunu denedi öneri.
hmm teşekkürler, ama iyi çalışmaz onun: o sayfayı yeniden çünkü şu şekilde normal çalışır, ancak bu durumda düzgün çalışabilmesi için görünmüyor. Tıklama tüm sayfayı sunar. Bir "normal" tarayıcıda deneyin ve ne demek istediğimi görüyorsunuz. – swapfile
utanıyor bana! SendKeys'teki "Test" Sorundu. Çalıştığından daha "Chrisko" ile denedim. – swapfile