I am trying to use the tool, my goal is to get the label of each element cursor at. So I have:
await voiceOver.navigateToWebContent()
await voiceOver.await voiceOver.next();
const spoken = await voiceOver.itemText();
console.log(spoken)
The problem is that nothing after await voiceOver.navigateToWebContent() runs. My assumption is that navigateToWebContent() walks through every element on the screen instead of just moving the cursor to the first element, so the call blocks until it finishes. Is that correct?
If so, is there a way to position the cursor on the first element only and then iterate through the page with voiceOver.next()?
I am trying to use the tool, my goal is to get the label of each element cursor at. So I have:
await voiceOver.navigateToWebContent()
await voiceOver.await voiceOver.next();
const spoken = await voiceOver.itemText();
console.log(spoken)
The problem is that nothing after await voiceOver.navigateToWebContent() runs. My assumption is that navigateToWebContent() walks through every element on the screen instead of just moving the cursor to the first element, so the call blocks until it finishes. Is that correct?
If so, is there a way to position the cursor on the first element only and then iterate through the page with voiceOver.next()?