[英]How to detect audio connection between two chrome browser windows using jave code in selenium tests?
I have invoked two apps from selenium.我从 selenium 调用了两个应用程序。 One browser window has customer app and the other agent app.
一个浏览器 window 具有客户应用程序和另一个代理应用程序。 Now, agent initiates a audio call to customer.
现在,代理向客户发起音频呼叫。 The connection is successfull.
连接成功。 I know connection is successful based on some new UI elements on agent side that show up.
我知道连接成功是基于代理端出现的一些新 UI 元素。 But, how do i verify if there is audio connection actually between these two browser windows using java code?
但是,我如何使用 java 代码验证这两个浏览器 windows 之间是否真的存在音频连接? Also, if i mute audio from agent side, how to make sure audio connection is now only one way, ie from customer browser window to agent browser window and does not exist from agent window to customer window?
Also, if i mute audio from agent side, how to make sure audio connection is now only one way, ie from customer browser window to agent browser window and does not exist from agent window to customer window?
you can set volume value like this你可以像这样设置音量值
JavascriptExecutor jse = (JavascriptExecutor)driver;
jse.executeScript("document.querySelector('locator').volume = 0.3;");
jse.executeScript("return document.querySelector('locator').muted");
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.