Questions tagged [suman]
5 questions
26
votes
3 answers
exporting imports as a namespace with TypeScript
My question is pretty much the same as this one:
https://github.com/Microsoft/TypeScript/issues/4529
Say I have this:
//exported imports
export {ISumanOpts, IGlobalSumanObj} from 'suman-types/dts/global';
export {ITestCaseParam} from…

Alexander Mills
- 90,741
- 139
- 482
- 817
1
vote
1 answer
Adding cookies with Selenium Webdriver
I have the following sequence of Selenium code, written with Node.js:
it('tests cookies', t => {
driver.manage().getCookies().then(function (cookies) {
console.log('all cookies => ', cookies);
});
…

Alexander Mills
- 90,741
- 139
- 482
- 817
1
vote
2 answers
Command to cd to root of project
I have a specific file at the root of my project. I have a command line app (suman) that knows where this file is located. Is there a command line switch I can feed to my command line app that can take me to project root.
Something like
suman --home…

Alexander Mills
- 90,741
- 139
- 482
- 817
0
votes
0 answers
el.click() produces strange Selenium Webdriver Error
I have this block of code:
it('tests cookies', opts, async t => {
await driver.get(`${cdthost}/#!/my-acquisitions/${acqId}`).then(function () {
return Promise.delay(3000);
});
await…

Alexander Mills
- 90,741
- 139
- 482
- 817
0
votes
1 answer
Include required API contract calls automatically
I have this code:
function runAsync(fn: Function) {
ret.count++;
fn(function (err: Error) {
err && console.error(err.stack || err);
ret.count--;
if (ret.count < 1) {
ret.cb();
}
});
}
…

Alexander Mills
- 90,741
- 139
- 482
- 817