spectron-window
Installation
npm install --save-dev spectron-window
Usage
// require { return 'login.html' } { if val return thisbrowser else return thisbrowser } { if val return thisbrowser else return thisbrowser } async { await this await this return this } async { await this } //...
const Application = Applicationconst app = path: '....' startTimeout: 15000 quitTimeout: 10000 waitTimeout: 20000await appstartawait appclient const loginWin = app
check full demo spectron-window-demo
Properties
browser
wrap spectron.client, but auto foucs window.
API
focus()
- focus to window
isExist()
- check the window isExist
License
MIT