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/test-browser/commands/clickInstance.js

12 lines
354 B

const EventEmitter = require('events')
class ClickInstance extends EventEmitter {
command (index) {
index = index + 2
let selector = '.instance:nth-of-type(' + index + ') > div > button'
this.api.waitForElementPresent(selector).click(selector).perform(() => { this.emit('complete') })
return this
}
}
module.exports = ClickInstance