spectron
spectron copied to clipboard
getText is very slow
Hi,
I am using Spectron for a e2e tests where I capture 10.000 elements and call getText on. This takes almost a minute and I am wondering if this is a performance issue or this is expected to be? Are there any alternatives available?
var timeline = await app.client.$$(".list h1");
let promises = [];
for (const text of commitLabels) {
promises.push(text.getText());
}
await Promise.all(promises).then((values: string[]) => {
// done
});
Thanks!
Hi, can anyone help out?