| 1 | 'use strict'; |
| 2 | |
| 3 | const Page = require( 'wdio-mediawiki/Page' ); |
| 4 | |
| 5 | class WatchlistPage extends Page { |
| 6 | get titles() { |
| 7 | return $( '.mw-changeslist' ) |
| 8 | .$$( '.mw-changeslist-line .mw-title' ); |
| 9 | } |
| 10 | |
| 11 | async open() { |
| 12 | return super.openTitle( 'Special:Watchlist' ); |
| 13 | } |
| 14 | |
| 15 | } |
| 16 | |
| 17 | module.exports = new WatchlistPage(); |