1
我使用casperJS捕獲使用casptureSelector方法用下面的代碼的屏幕的一部分:casperjs captureSelector多個類作爲選擇
this.waitForSelector(config.selector, function() {
this.then(function() {
this.captureSelector(config.imageFileName, config.selector);
});
});
所以能夠通過#someId用於id選擇和.someClass用於類選擇器。
但我怎麼能傳遞多個類選擇器,如.someClass.otherClass?
我嘗試了許多變化,但我無法使它工作。