Sessions
newSession(options)
import { newSession } from 'w3c-webdriver';
let session;
(async () => {
try {
session = await newSession({
url: 'http://localhost:4444',
capabilities: {
alwaysMatch: {
browserName: 'Chrome'
}
}
});
} catch (err) {
console.log(err.stack);
} finally {
session.close();
}
})();status(url)
Session
session.close()
SessionOptions
Status
StatusOfOS
StatusOfWebDriver
Last updated