remix-project mirror
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
remix-project/apps/remix-ide/test-browser/commands/scrollAndClick.js

15 lines
272 B

const EventEmitter = require('events')
class scrollAndClick extends EventEmitter {
command (target) {
this.api
.scrollInto(target)
.click(target)
.perform(() => {
this.emit('complete')
})
return this
}
}
module.exports = scrollAndClick