/** * Finds the menu that can be used by the owner to control the participant. Hovers over it. Finds * the mute link and mute it. Then checks in the second participant page whether it is muted */ public void ownerMutesParticipantAndCheck() { WebElement elem = ConferenceFixture.getOwner() .findElement(By.xpath("//span[@class='remotevideomenu']/i[@class='fa fa-angle-down']")); Actions action = new Actions(ConferenceFixture.getOwner()); action.moveToElement(elem); action.perform(); TestUtils.waitsForDisplayedElementByXPath( ConferenceFixture.getOwner(), "//ul[@class='popupmenu']/li/a[@class='mutelink']", 5); ConferenceFixture.getOwner() .findElement(By.xpath("//ul[@class='popupmenu']/li/a[@class='mutelink']")) .click(); // and now check whether second participant is muted TestUtils.waitsForElementByXPath( ConferenceFixture.getSecondParticipant(), "//span[@class='audioMuted']/i[@class='icon-mic-disabled']", 5); action.release(); }