2017-06-03 09:27:29 +08:00
|
|
|
'use strict';
|
2017-05-14 11:52:43 +08:00
|
|
|
|
2017-06-03 09:27:29 +08:00
|
|
|
class Page {
|
|
|
|
open(path) {
|
|
|
|
browser.url(path);
|
|
|
|
}
|
2017-05-14 11:52:43 +08:00
|
|
|
|
2017-06-03 09:27:29 +08:00
|
|
|
pressEnter() {
|
|
|
|
browser.keys('Enter');
|
|
|
|
}
|
2017-06-06 07:42:33 +08:00
|
|
|
|
|
|
|
isFirefox() {
|
|
|
|
return browser.desiredCapabilities.browserName == 'firefox';
|
|
|
|
}
|
2017-06-03 09:27:29 +08:00
|
|
|
}
|
2017-05-22 09:56:02 +08:00
|
|
|
|
2017-06-03 09:27:29 +08:00
|
|
|
module.exports = Page;
|
2017-05-14 11:52:43 +08:00
|
|
|
|