MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / browsers

Method browsers

javascript/selenium-webdriver/testing/index.js:294–296  ·  view source on GitHub ↗

* Returns a predicate function that will suppress tests in this environment * if the plain #browser current browser is in the list of * `browsersToIgnore`. * * @param {...(string|!Browser)} browsersToIgnore the browsers that should * be ignored. * @return {function(): bo

(...browsersToIgnore)

Source from the content-addressed store, hash-verified

292 * @return {function(): boolean} a new predicate function.
293 */
294 browsers(...browsersToIgnore) {
295 return () => browsersToIgnore.indexOf(this.browser.name) !== -1
296 }
297
298 /**
299 * Returns a predicate function that will suppress tests in this environment

Callers 15

proxy_test.jsFile · 0.80
browsersFunction · 0.80
logging_test.jsFile · 0.80
cookie_test.jsFile · 0.80
browsersFunction · 0.80
actions_test.jsFile · 0.80
browsersFunction · 0.80
upload_test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected