spectron icon indicating copy to clipboard operation
spectron copied to clipboard

getText is very slow

Open MMcKester opened this issue 5 years ago • 1 comments

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!

MMcKester avatar Nov 11 '20 16:11 MMcKester

Hi, can anyone help out?

MMcKester avatar Nov 26 '20 00:11 MMcKester