bigbluebutton-Github/bigbluebutton-html5/tests/webdriverio/pageobjects/page.js
Maxim Khlobystov 03373b5abe Make sure the acceptance tests that involve keyboard are not executed on Firefox
This commit prevents logging with Enter key from happening in Firefox tests. There's a well-known bug associated with browser.keys() on Firefox. We add an additional check to the Login test specs to prevent that from happening.
2017-06-05 23:42:33 +00:00

19 lines
232 B
JavaScript

'use strict';
class Page {
open(path) {
browser.url(path);
}
pressEnter() {
browser.keys('Enter');
}
isFirefox() {
return browser.desiredCapabilities.browserName == 'firefox';
}
}
module.exports = Page;