devtools
Version:
A Chrome DevTools protocol binding that maps WebDriver commands into Chrome DevTools commands using Puppeteer
15 lines (14 loc) • 498 B
JavaScript
/**
* The Get Timeouts command gets timeout durations associated with the current session.
*
* @alias browser.getTimeouts
* @see https://w3c.github.io/webdriver/#dfn-get-timeouts
* @return {Object} Object containing timeout durations for `script`, `pageLoad` and `implicit` timeouts.
*/
export default function getTimeouts() {
return {
implicit: this.timeouts.get('implicit'),
pageLoad: this.timeouts.get('pageLoad'),
script: this.timeouts.get('script')
};
}