UNPKG

tia

Version:

Time is All (logs driven test engine with ExtJs support)

18 lines (12 loc) 376 B
'use strict'; const { t, l, s } = gT; async function test() { t.setTitle('Test for client exceptions'); await s.driver.init(); await s.browser.loadPage('http://google.com'); const res = await s.browser.executeScript('return 5;'); l.println(`Result of script execution: ${res}`); // await s.browser.close(); await s.driver.quit(); } module.exports = test();