alert(‘Enable record all left mouse clicks with wait operations’);

Recorder.removeEventHandler(‘clickLocator’);

Recorder.addEventHandler(‘clickLocator’, ‘click’,

function(event) {

//alert(‘event.button’ + event.button);

if (event.button == 0) {

this.clickLocator = this.findLocator(event.target);

this.record(“clickAndWait”, this.clickLocator, ”);

}

}, { capture: true });

转载请注明:WebLogic Android 博客 » Selenium 录制点击事件, 方便快速完成日常操作