Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🐛 Bug]: Issue with recording in Safari #12879

Closed
3 tasks done
alminveh opened this issue May 15, 2024 · 1 comment
Closed
3 tasks done

[🐛 Bug]: Issue with recording in Safari #12879

alminveh opened this issue May 15, 2024 · 1 comment
Labels
Bug 🐛 Needs Triaging ⏳ No one has looked into the issue yet

Comments

@alminveh
Copy link

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

8.32.1

Node.js Version

19.6.1

Mode

WDIO Testrunner

Which capabilities are you using?

{
    browserName: "safari",
}

What happened?

When using microphone in Safari only noise is getting recorded. This only happens when Safari is started from the tests. I tried with different applications and all of them capture the same audio (just noise). Not sure if this is an issue in webdriver or in Safari itself. Issue is not reproducible with Chrome or Edge.

What is your expected behavior?

Microphone picks up available sound.

How to reproduce the bug.

It is possible to reproduce this with a simple test like this one for example:

` it('should start recording', async function () {
await browser.url("https://translate.google.com/?sl=en&tl=es&op=translate");

var micButtons = await $$('button[aria-label="Translate by voice"]');

// we get two buttons, one of them is clickable
var clickableMicButton = await micButtons.find(async (button) => {
  return await button.isClickable();
});

await clickableMicButton.waitForDisplayed({ timeout: 5000 });
await clickableMicButton.click();

await browser.pause(5000);

}); `

If recording is not started you can also run the test in debug mode and start recording manually. Input field is populated with "TestTestTestTestTest....". I recorded the audio and it's just "beep - some silence - beep - silence - beep - silence - ....".

Relevant log output

No relevant output.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues
@alminveh alminveh added Bug 🐛 Needs Triaging ⏳ No one has looked into the issue yet labels May 15, 2024
@christian-bromann
Copy link
Member

@alminveh thanks for raising the issue.

Unfortunately this seem more like a browser bug rather than one in WebdriverIO. There is really nothing we can do to fix this. I recommend filing an issue on the Apple side for the Safari browser.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐛 Needs Triaging ⏳ No one has looked into the issue yet
Projects
None yet
Development

No branches or pull requests

2 participants